MCPcopy Create free account
hub / github.com/crowdriff/lru / PutAndEvict

Method PutAndEvict

algorithm.go:21–21  ·  view source on GitHub ↗

PutAndEvict inserts the provided key and size into the LRU and returns a slice of keys that have been evicted as well as the total size in bytes that were evicted.

([]byte, int64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

addItemMethod · 0.65
twoq_test.goFile · 0.65
BenchmarkTwoQPutAndEvictFunction · 0.65
lru_test.goFile · 0.65
basiclru_test.goFile · 0.65

Implementers 2

BasicLRUbasiclru.go
TwoQtwoq.go

Calls

no outgoing calls

Tested by 2

BenchmarkTwoQPutAndEvictFunction · 0.52