Documentation ¶ Index ¶ type LoadCache func NewCache() *LoadCache func (c *LoadCache) Load(key string) (interface{}, bool) func (c *LoadCache) LoadFromCacheOrRawDisk(file string) (interface{}, []byte, error) func (c *LoadCache) Put(key string, data interface{}, ttl time.Duration) func (c *LoadCache) Remove(key string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type LoadCache ¶ type LoadCache struct { // contains filtered or unexported fields } func NewCache ¶ func NewCache() *LoadCache func (*LoadCache) Load ¶ func (c *LoadCache) Load(key string) (interface{}, bool) func (*LoadCache) LoadFromCacheOrRawDisk ¶ func (c *LoadCache) LoadFromCacheOrRawDisk(file string) (interface{}, []byte, error) func (*LoadCache) Put ¶ func (c *LoadCache) Put(key string, data interface{}, ttl time.Duration) func (*LoadCache) Remove ¶ func (c *LoadCache) Remove(key string) Source Files ¶ View all Source files load_cache.go Click to show internal directories. Click to hide internal directories.