Registry / utility / outcaste-io-ristretto

outcaste-io-ristretto

JSON →
library0.2.3gogounverified

A fast, fixed-size, in-memory cache with high throughput and hit ratio performance.

go get github.com/outcaste-io/ristretto
INSTALL
IMPORT
SIG · OUTCASTE-IO-RISTRE
O
outcaste-io-ristretto
utilitygov0.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ristretto
github.com/outcaste-io/ristretto

Creates a new Ristretto cache, sets and gets a value.

package main import ( "fmt" "github.com/outcaste-io/ristretto" ) func main() { cache, err := ristretto.NewCache(&ristretto.Config{ NumCounters: 1e7, MaxCost: 1 << 30, BufferItems: 64, }) if err != nil { panic(err) } cache.Set("key", "value", 1) val, ok := cache.Get("key") if ok { fmt.Println(val) } }
Debug
Known issues
breakingThe package has been moved to github.com/dgraph-io/ristretto; this fork may be outdated.
fix
Use github.com/dgraph-io/ristretto instead.
affects: all
Upgrade
Version history
0.2.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
outcaste-io-ristretto — go get outcaste-io-ristretto · libregistry