memory

package
v0.0.0-...-3214d3a Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoSpaceError = errors.New("cache: no space for new object")
)

Functions

This section is empty.

Types

type Object

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

type Objects

type Objects struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *Objects

func (*Objects) Del

func (o *Objects) Del(key string) error

func (*Objects) Destory

func (o *Objects) Destory()

func (*Objects) Flush

func (o *Objects) Flush() error

func (*Objects) Get

func (o *Objects) Get(key string) interface{}

func (*Objects) Set

func (o *Objects) Set(key string, val interface{}, ttl int64) error

Jump to

Keyboard shortcuts

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