MCPcopy
hub / github.com/SpectoLabs/hoverfly / FastCache

Interface FastCache

core/cache/fastcache.go:4–10  ·  view source on GitHub ↗

FastCache - cache interface used to store and retrieve any data type which requires no serialization

Source from the content-addressed store, hash-verified

2
3// FastCache - cache interface used to store and retrieve any data type which requires no serialization
4type FastCache interface {
5 Set(key, value interface{}) error
6 Get(key interface{}) (interface{}, bool)
7 GetAllEntries() (map[interface{}]interface{}, error)
8 RecordsCount() (int, error)
9 DeleteData() error
10}

Callers

nothing calls this directly

Implementers 3

BoltCachecore/cache/boltdb_cache.go
InMemoryCachecore/cache/memory_cache.go
LRUFastCachecore/cache/lru_fastcache.go

Calls

no outgoing calls

Tested by

no test coverage detected