memorycache

package
v0.0.0-...-aed2785 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 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 MemoryCacheValue

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

func (*MemoryCacheValue) To

func (value *MemoryCacheValue) To(dstType reflect.Type) (any, error)

type MemoryCacher

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

func New

func New() *MemoryCacher

func (*MemoryCacher) Delete

func (cacher *MemoryCacher) Delete(key string) error

func (*MemoryCacher) Get

func (cacher *MemoryCacher) Get(key string) (dinfra.CacheValue, error)

func (*MemoryCacher) GetH

func (cacher *MemoryCacher) GetH(key string, index string) (dinfra.CacheValue, error)

func (*MemoryCacher) Lock

func (cacher *MemoryCacher) Lock(key string)

func (*MemoryCacher) Set

func (cacher *MemoryCacher) Set(key string, value any, expire int64) error

func (*MemoryCacher) SetH

func (cacher *MemoryCacher) SetH(key string, values map[string]any, expire int64) error

func (*MemoryCacher) Unlock

func (cacher *MemoryCacher) Unlock(key string)

Jump to

Keyboard shortcuts

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