cache

package
v0.0.0-...-efca985 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 3 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 {
	// contains filtered or unexported fields
}

Cache defines wrapper over the cache

func New

func New(с *config.Config) *Cache

New provides initialization of the cache

func (*Cache) Get

func (c *Cache) Get(key string) (interface{}, error)

Get provides getting from the cache

func (*Cache) Set

func (c *Cache) Set(key string, value interface{}) error

Set provides inserting to the cache

Jump to

Keyboard shortcuts

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