memorydb

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LruCache

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

Implements Cacher

func New

func New(size int) *LruCache

func (LruCache) Get

func (c LruCache) Get(key string) ([]byte, bool)

func (LruCache) NewIterator

func (c LruCache) NewIterator() iterator.Iterator

Hack, db.Cacher interface needs this

func (*LruCache) Put

func (c *LruCache) Put(key string, value []byte)

Jump to

Keyboard shortcuts

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