cache

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 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 CacheEntry

type CacheEntry struct {
	Data   interface{}
	Expiry int64
}

func (CacheEntry) IsExpired

func (ce CacheEntry) IsExpired() bool

type InMemoryStorage

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

func NewInMemoryStorage

func NewInMemoryStorage() *InMemoryStorage

func (InMemoryStorage) Get

func (ims InMemoryStorage) Get(key string) interface{}

func (InMemoryStorage) Set

func (ims InMemoryStorage) Set(key string, data interface{}, cacheTime time.Duration)

Jump to

Keyboard shortcuts

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