cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 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 user cache.

func New

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

New to create new user cache.

func (*Cache) Get

Get to get user anime.

func (*Cache) IsOld

func (c *Cache) IsOld(ctx context.Context, username string) (bool, int, error)

IsOld to check if old.

func (*Cache) Update

func (c *Cache) Update(ctx context.Context, data entity.UserAnime) (int, error)

Update to update user anime.

Jump to

Keyboard shortcuts

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