cachr

package module
v0.0.0-...-7dc01ea Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

README

cachr

Cachr is a library of in-memory caching algorithms for Golang.

Features
  • For use by a single goroutine
  • Multiple in-memory cache types
  • Specify maximum cache sizes in bytes
  • Go library for embedding inside other Go code
  • Support for ARC, MRU, LRU, FIFO, LIFO, LFU, LFUDA caching algorithms
Installation
go get github.com/abcum/cachr

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacheable

type Cacheable interface {
	Clr()
	Has(string) bool
	Get(string) []byte
	Del(string) []byte
	Put(string, []byte) []byte
}

Cacheable is an interface which represents a caching algorithm type for storing bytes of data using different cache replacement policies.

Directories

Path Synopsis
Package fifo enables caching bytes of data using an in-memory First-In-First-Out cache.
Package fifo enables caching bytes of data using an in-memory First-In-First-Out cache.
Package lfu enables caching bytes of data using an in-memory Least Frequently Used cache.
Package lfu enables caching bytes of data using an in-memory Least Frequently Used cache.
Package lfuda enables caching bytes of data using an in-memory LFU with Dynamic Ageing cache.
Package lfuda enables caching bytes of data using an in-memory LFU with Dynamic Ageing cache.
Package lifo enables caching bytes of data using an in-memory Last-In-First-Out cache.
Package lifo enables caching bytes of data using an in-memory Last-In-First-Out cache.
Package lru enables caching bytes of data using an in-memory Least Recently Used cache.
Package lru enables caching bytes of data using an in-memory Least Recently Used cache.
Package mru enables caching bytes of data using an in-memory Most Recently Used cache.
Package mru enables caching bytes of data using an in-memory Most Recently Used cache.

Jump to

Keyboard shortcuts

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