Documentation ¶
Index ¶
- func NewLRUCache(capacity int) db.Database
- type LRUCache
- func (c *LRUCache) Close()
- func (c *LRUCache) Delete(key []byte) error
- func (c *LRUCache) EnlargeCapacity(newCapacity int) error
- func (c *LRUCache) Get(key []byte) ([]byte, error)
- func (c *LRUCache) Keys() []interface{}
- func (c *LRUCache) Len() int
- func (c *LRUCache) Put(key []byte, value []byte) error
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
LRUCache cache struct
func (*LRUCache) EnlargeCapacity ¶
EnlargeCapacity enlarge the capacity of cache
Click to show internal directories.
Click to hide internal directories.