cache

package
v0.0.0-...-c5eec25 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryCache

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

func MemoryCacheNew

func MemoryCacheNew() *MemoryCache

func (*MemoryCache) Get

func (m *MemoryCache) Get(key string) interface{}

func (*MemoryCache) Has

func (m *MemoryCache) Has(key string) bool

func (*MemoryCache) Set

func (m *MemoryCache) Set(key string, data interface{})

func (*MemoryCache) SetExp

func (m *MemoryCache) SetExp(key string, data interface{}, seconds float64)

type MemoryCacheItem

type MemoryCacheItem struct {
	Data interface{}
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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