cache

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 7 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
}

func NewCache

func NewCache(path string) (*Cache, error)

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) CompareAndSet

func (c *Cache) CompareAndSet(key string, value int64) error

func (*Cache) Delete

func (c *Cache) Delete(key string) error

func (*Cache) Get

func (c *Cache) Get(key string) (int64, bool)

func (*Cache) GetBytes added in v2.9.0

func (c *Cache) GetBytes(key string) ([]byte, bool)

func (*Cache) GetInterface added in v2.9.0

func (c *Cache) GetInterface(key string) (model.InterfaceTransferObject, bool)

func (*Cache) GetInterfaceNames added in v2.9.0

func (c *Cache) GetInterfaceNames(key string) ([]string, bool)

func (*Cache) NeedToUpdate

func (c *Cache) NeedToUpdate(key string, value int64) bool

func (*Cache) Set

func (c *Cache) Set(key string, value int64) error

func (*Cache) SetBytes added in v2.9.0

func (c *Cache) SetBytes(key string, value []byte) error

func (*Cache) SetInterface added in v2.9.0

func (c *Cache) SetInterface(key string, value model.InterfaceTransferObject) error

func (*Cache) SetInterfaceNames added in v2.9.0

func (c *Cache) SetInterfaceNames(key string, value []string) error

Jump to

Keyboard shortcuts

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