cache

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheStore

type CacheStore interface {
	Set(key string, value any)
	Get(key string) (any, bool)
}

type ImMemoryCacheStore

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

func NewImMemoryCacheStore

func NewImMemoryCacheStore(expiration, clean time.Duration) *ImMemoryCacheStore

func (*ImMemoryCacheStore) Get

func (c *ImMemoryCacheStore) Get(key string) (any, bool)

func (*ImMemoryCacheStore) Set

func (c *ImMemoryCacheStore) Set(key string, value any)

Jump to

Keyboard shortcuts

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