nodecache

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVersionMismatch = errors.New("VERSION MISMATCH")
	ErrNotFound        = errors.New("ERROR NOT FOUND")
)

Functions

This section is empty.

Types

type NodeCache

type NodeCache struct {
	// contains filtered or unexported fields
}

func New

func New(path string) *NodeCache

func (*NodeCache) Expire

func (nc *NodeCache) Expire(tenantId, space, key string) error

func (*NodeCache) Get

func (nc *NodeCache) Get(tenantId, space, key string) (data []byte, version int64, expire int64, err error)

func (*NodeCache) Put

func (nc *NodeCache) Put(tenantId, space, key string, value []byte, expire int64) error

func (*NodeCache) PutCAS

func (nc *NodeCache) PutCAS(tenantId, space, key string, value []byte, version, expire int64) error

Jump to

Keyboard shortcuts

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