# Functions
HashKey hashes key into something you can store in memcached.
Instrument returns an instrumented cache.
IsEmptyTieredCache is used to determine whether the current Cache is implemented by an empty tiered.
New creates a new Cache using Config.
NewBackground returns a new Cache that does stores on background goroutines.
NewFifoCache returns a new initialised FifoCache of size.
NewMemcached makes a new Memcached.
NewMemcachedClient creates a new MemcacheClient that gets its server list from SRV and updates the server list on a regular basis.
NewMockCache makes a new MockCache.
NewNoopCache returns a no-op cache.
NewRedisCache creates a new RedisCache.
NewRedisClient creates Redis client.
NewSnappy makes a new snappy encoding cache wrapper.
NewTiered makes a new tiered cache.
StopOnce wraps a Cache and ensures its only stopped once.
StringToBytes converts string to byte slice.
# Structs
BackgroundConfig is config for a Background Cache.
Config for building Caches.
FifoCache is a simple string -> interface{} cache which uses a fifo slide to manage evictions.
FifoCacheConfig holds config for the FifoCache.
Memcached type caches chunks in memcached.
MemcachedClientConfig defines how a MemcachedClient should be constructed.
MemcachedConfig is config to make a Memcached.
MemcachedJumpHashSelector implements the memcache.ServerSelector interface.
RedisCache type caches chunks in redis.
RedisConfig defines how a RedisCache should be constructed.
# Interfaces
Cache byte arrays by key.
MemcachedClient interface exists for mocking memcacheClient.