cache

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 6 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 empty_id cache.

func New

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

New to create new empty_id cache.

func (*Cache) Create

func (c *Cache) Create(ctx context.Context, id int64) (int, error)

Create to create empty id.

func (*Cache) Delete

func (c *Cache) Delete(ctx context.Context, id int64) (int, error)

Delete to delete empty id.

func (*Cache) Get

func (c *Cache) Get(ctx context.Context, id int64) (int64, int, error)

Get to get empty id.

func (*Cache) GetIDs

func (c *Cache) GetIDs(ctx context.Context) ([]int64, int, error)

GetIDs to get all ids.

Jump to

Keyboard shortcuts

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