mem_cache

package
v0.0.0-...-50d7d3f Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 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 Mem

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

func NewMem

func NewMem(ttl time.Duration) *Mem

func (*Mem) Delete

func (m *Mem) Delete(key string) error

func (*Mem) Get

func (m *Mem) Get(key string, obj interface{}) error

func (*Mem) Set

func (m *Mem) Set(key string, obj interface{}) error

Jump to

Keyboard shortcuts

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