cache

package
v0.4.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 genre cache.

func New

func New(cacher cache.Cacher, repo repository.Repository) *Cache

New to create new genre cache.

func (*Cache) BatchUpdate

func (c *Cache) BatchUpdate(ctx context.Context, data []entity.Genre) (int, error)

BatchUpdate to batch update.

func (*Cache) GetAll added in v0.2.0

func (c *Cache) GetAll(ctx context.Context, req entity.GetAllRequest) (_ []entity.Genre, _ int, code int, err error)

GetAll to get genre list.

func (*Cache) GetByID added in v0.3.0

func (c *Cache) GetByID(ctx context.Context, id int64) (data *entity.Genre, code int, err error)

GetByID to get by id.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL