Documentation ¶
Index ¶
- type Cache
- func (c *Cache) BatchUpdate(ctx context.Context, data []entity.Magazine) (int, error)
- func (c *Cache) GetAll(ctx context.Context, req entity.GetAllRequest) (_ []entity.Magazine, _ int, code int, err error)
- func (c *Cache) GetByID(ctx context.Context, id int64) (data *entity.Magazine, code int, err 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 magazine cache.
func New ¶
func New(cacher cache.Cacher, repo repository.Repository) *Cache
New to create new magazine cache.
func (*Cache) BatchUpdate ¶
BatchUpdate to batch update.
Click to show internal directories.
Click to hide internal directories.