mcache

package
v0.0.0-...-6d34543 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 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 MemCacheRepo

type MemCacheRepo interface {
	Get(string) (interface{}, bool)
	Set(string, interface{}, time.Duration) bool
}

func NewMemCachedRepo

func NewMemCachedRepo() MemCacheRepo

type RistrettoCache

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

func (*RistrettoCache) Get

func (c *RistrettoCache) Get(key string) (interface{}, bool)

func (*RistrettoCache) Set

func (c *RistrettoCache) Set(key string, value interface{}, ttl time.Duration) bool

Jump to

Keyboard shortcuts

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