Documentation ¶
Index ¶
- type Cache
- func (c *Cache) BatchUpdate(ctx context.Context, data []entity.UserManga) (int, error)
- func (c *Cache) DeleteByMangaID(ctx context.Context, mangaID int64) (int, error)
- func (c *Cache) DeleteNotInList(ctx context.Context, username string, ids []int64) (int, error)
- func (c *Cache) Get(ctx context.Context, data entity.GetUserMangaRequest) ([]*entity.UserManga, int, int, error)
- func (c *Cache) GetOldUsernames(ctx context.Context) ([]string, int, error)
- func (c *Cache) IsOld(ctx context.Context, username string) (bool, 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 user_manga cache.
func New ¶
func New(cacher cache.Cacher, repo repository.Repository) *Cache
New to create new user_manga cache.
func (*Cache) BatchUpdate ¶
BatchUpdate to batch update.
func (*Cache) DeleteByMangaID ¶
DeleteByMangaID to delete by manga id.
func (*Cache) DeleteNotInList ¶
DeleteNotInList to delete not in list.
func (*Cache) Get ¶
func (c *Cache) Get(ctx context.Context, data entity.GetUserMangaRequest) ([]*entity.UserManga, int, int, error)
Get to get user manga.
func (*Cache) GetOldUsernames ¶
GetOldUsernames to get old username.
Click to show internal directories.
Click to hide internal directories.