Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Add(ctx context.Context, gID string, data entity.Song) error
- func (c *Cache) GetIndex(ctx context.Context, gID string) int
- func (c *Cache) GetList(ctx context.Context, gID string) []entity.Song
- func (c *Cache) IsEmpty(ctx context.Context, gID string) bool
- func (c *Cache) Purge(ctx context.Context, gID string) error
- func (c *Cache) Remove(ctx context.Context, gID string, is ...int) error
- func (c *Cache) SetIndex(ctx context.Context, gID string, i int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache contains functions for queue cache.
Click to show internal directories.
Click to hide internal directories.