Documentation ¶ Index ¶ type FIFOCache func New(size int) *FIFOCache func (a *FIFOCache) Add(keyValue KeyValue) func (a FIFOCache) Cap() int func (a *FIFOCache) Exists(key []byte) bool func (a *FIFOCache) Get(key []byte) (value interface{}, ok bool) func (a FIFOCache) Len() int type KeyValue Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type FIFOCache ¶ type FIFOCache struct { // contains filtered or unexported fields } func New ¶ func New(size int) *FIFOCache func (*FIFOCache) Add ¶ func (a *FIFOCache) Add(keyValue KeyValue) func (FIFOCache) Cap ¶ func (a FIFOCache) Cap() int func (*FIFOCache) Exists ¶ func (a *FIFOCache) Exists(key []byte) bool func (*FIFOCache) Get ¶ func (a *FIFOCache) Get(key []byte) (value interface{}, ok bool) func (FIFOCache) Len ¶ func (a FIFOCache) Len() int type KeyValue ¶ type KeyValue interface { Key() []byte Value() interface{} } Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.