Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllErrorCache ¶
type AllErrorCache struct{}
AllErrorCache is used for testing. Every interface that can return an error, does
func (*AllErrorCache) Get ¶
func (simc *AllErrorCache) Get(ns, key string, v interface{}) (miss bool, err error)
func (*AllErrorCache) Set ¶
func (simc *AllErrorCache) Set(ns, key string, v interface{}) error
type BytesCache ¶
type NaiveInMemoryCache ¶
type NaiveInMemoryCache struct {
// contains filtered or unexported fields
}
NaiveInMemoryCache is used for TESTING! It has no TTL and will eventually eat all memory
func NewNaiveInMemoryCache ¶
func NewNaiveInMemoryCache() *NaiveInMemoryCache
func (*NaiveInMemoryCache) Get ¶
func (simc *NaiveInMemoryCache) Get(ns, key string, v interface{}) (miss bool, err error)
func (*NaiveInMemoryCache) Set ¶
func (simc *NaiveInMemoryCache) Set(ns, key string, v interface{}) error
type NoOpCache ¶
type NoOpCache struct{}
NoOpCache is used to disable caching. All operations miss or do nothing
type ObjectCache ¶
Click to show internal directories.
Click to hide internal directories.