bigcache

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 6 Imported by: 0

README

BigCache

Mostly GC-free In-memory Cache

Go Report Card Coverage Status

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 ...

func New

func New(numSegments int, segmentSize int) *Cache

New ...

func (*Cache) Delete

func (c *Cache) Delete(key []byte) bool

Delete ...

func (*Cache) Get

func (c *Cache) Get(key []byte, value []byte) (int, bool)

Get ...

func (*Cache) GetAccessCount

func (c *Cache) GetAccessCount() uint64

GetAccessCount ...

func (*Cache) GetHitCount

func (c *Cache) GetHitCount() uint64

GetHitCount ...

func (*Cache) GetTotal

func (c *Cache) GetTotal() uint64

GetTotal ...

func (*Cache) Put

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

Put ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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