MCPcopy Create free account
hub / github.com/PascalMinder/geoblock / Add

Method Add

lrucache/lru_interface.go:8–8  ·  view source on GitHub ↗

Add a new value to the cache and updates the recent-ness. Returns true if an eviction occurred.

(key, value interface{})

Source from the content-addressed store, hash-verified

6 // Add a new value to the cache and updates the recent-ness.
7 // Returns true if an eviction occurred.
8 Add(key, value interface{}) bool
9
10 // Return a key's value if found in the cache and updates the recent-ness.
11 Get(key interface{}) (value interface{}, ok bool)

Implementers 1

LRUCachelrucache/lru.go

Calls

no outgoing calls