Documentation
¶
Index ¶
- Constants
- func Del(key string)
- func Get(key string) (val []byte)
- func GetString(key string) (val string)
- func Init(configPath string) error
- func Set(key string, val []byte, ttl time.Duration) error
- func Statistics()
- type Cache
- type Configuration
- type Default
- type FIFOCache
- type LFUCache
- type LRUCache
- type MinHeap
Constants ¶
View Source
const ( LocalCacheTypeDefault = "default" LocalCacheTypeLRU = "lru" LocalCacheTypeFIFO = "fifo" LocalCacheTypeLFU = "lfu" )
Variables ¶
This section is empty.
Functions ¶
func Statistics ¶
func Statistics()
Types ¶
type Cache ¶
type Cache interface {
// contains filtered or unexported methods
}
var Cacher Cache
func NewDefaultLocalCache ¶
func NewFIFOCache ¶
func NewLFUCache ¶
func NewLRUCache ¶
type Configuration ¶
Click to show internal directories.
Click to hide internal directories.