vicache

package module
v0.0.0-...-ee43547 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: MIT Imports: 4 Imported by: 0

README

vicache

In-memory cache

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ViCache

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

ViCache defines main struct for cache

func New

func New(max, bucketsCount uint) (*ViCache, error)

New provides initialization of vi cache

func (*ViCache) Del

func (c *ViCache) Del(k []byte)

Del provides deleting of the data

func (*ViCache) Get

func (c *ViCache) Get(dst, k []byte) []byte

Get provides getting value by the key

func (*ViCache) Set

func (c *ViCache) Set(k, v []byte)

Set provides setting of the key and value

Jump to

Keyboard shortcuts

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