Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Cleanup() error
- func (c *Cache) Clear() error
- func (c *Cache) Delete(key string) error
- func (c *Cache) GenerateKey(prefix string, params map[string]interface{}) string
- func (c *Cache) Get(key string) ([]byte, bool)
- func (c *Cache) Set(key string, data []byte) error
- func (c *Cache) Stats() (total int, size int64, err error)
- type CacheEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache provides simple file-based caching
func (*Cache) GenerateKey ¶
GenerateKey creates a cache key from parameters
Click to show internal directories.
Click to hide internal directories.