cache

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 4 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 studio cache.

func New

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

New to create new studio cache.

func (*Cache) BatchUpdate

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

BatchUpdate to batch update.

func (*Cache) Get added in v0.10.0

func (c *Cache) Get(ctx context.Context, data entity.GetRequest) ([]*entity.Studio, int, int, error)

Get to get list.

func (*Cache) GetByID added in v0.10.0

func (c *Cache) GetByID(ctx context.Context, id int64) (*entity.Studio, int, error)

GetByID to get by id.

func (*Cache) GetByIDs

func (c *Cache) GetByIDs(ctx context.Context, ids []int64) ([]*entity.Studio, int, error)

GetByIDs to get studio by ids.

func (*Cache) GetHistories added in v0.10.0

func (c *Cache) GetHistories(ctx context.Context, data entity.GetHistoriesRequest) ([]entity.History, int, error)

GetHistories to get histories.

Jump to

Keyboard shortcuts

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