Documentation ¶
Index ¶
- Variables
- type Cache
- func (c *Cache) Delete(key CacheKey, fields ...string) error
- func (c *Cache) Get(key CacheKey, field string) (string, error)
- func (c *Cache) GetAll(key CacheKey) (map[string]string, error)
- func (c *Cache) Set(key CacheKey, field string, value interface{}) error
- func (c *Cache) SetAll(key CacheKey, fields map[string]interface{}) error
- type CacheKey
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheKeys = struct { Templates, Hardwares, Workflows, TemplateNames CacheKey }{ Templates: "templates", Hardwares: "hardwares", Workflows: "workflows", TemplateNames: "template-names", }
CacheKeys is a collection of allowed keys
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents the redis cache client
func Instance ¶
func Instance() *Cache
Instance returns an existing client instance; creates new otherwise
Click to show internal directories.
Click to hide internal directories.