Documentation ¶
Index ¶
- type Cache
- func (c *Cache) DeleteByID(ctx context.Context, id string, userID int64) (int, error)
- func (c *Cache) Get(ctx context.Context, data entity.GetRequest) ([]entity.TierList, int, int, error)
- func (c *Cache) GetByID(ctx context.Context, id string) (data *entity.TierList, code int, err error)
- func (c *Cache) UpsertByID(ctx context.Context, data entity.TierList) (*entity.TierList, 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 tier list cache.
func New ¶
func New(cacher cache.Cacher, repo repository.Repository) *Cache
New to create new tier list cache.
func (*Cache) DeleteByID ¶
DeleteByID to delete by id.
func (*Cache) Get ¶
func (c *Cache) Get(ctx context.Context, data entity.GetRequest) ([]entity.TierList, int, int, error)
Get to get list.
Click to show internal directories.
Click to hide internal directories.