cache

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	ID string
	// contains filtered or unexported fields
}

Cache wraps bigcache

func New

func New(name string, lifetimeMinutes int, shards int) (*Cache, error)

New returns initialized Cache

func (*Cache) Get

func (c *Cache) Get(key string) (value []byte, err error)

Get returns value of key from cache

func (*Cache) Set

func (c *Cache) Set(key string, value []byte)

Set store the key value in cache

Jump to

Keyboard shortcuts

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