Documentation ¶
Index ¶
- Variables
- type ByIndexEntryExpiry
- type Cache
- func (c *Cache) Action(name string, args ...interface{}) (map[string]*interface{}, error)
- func (c *Cache) Close()
- func (c *Cache) CreateGroupIfNotExists(key string) (*Group, error)
- func (c *Cache) Debug(action string)
- func (c *Cache) Delete(key string)
- func (c *Cache) DeleteGroup(key string) error
- func (c *Cache) Get(key string) (resp []byte, ok bool)
- func (c *Cache) Set(key string, resp []byte)
- type CacheEntry
- type Config
- type Group
- type IndexEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginConfig = &boltdbttlcacheConfig{ done: make(chan struct{}), } )
Config ...
Functions ¶
This section is empty.
Types ¶
type ByIndexEntryExpiry ¶
type ByIndexEntryExpiry []IndexEntry
func (ByIndexEntryExpiry) Len ¶
func (s ByIndexEntryExpiry) Len() int
func (ByIndexEntryExpiry) Less ¶
func (s ByIndexEntryExpiry) Less(i, j int) bool
func (ByIndexEntryExpiry) Swap ¶
func (s ByIndexEntryExpiry) Swap(i, j int)
type Cache ¶
func (*Cache) CreateGroupIfNotExists ¶
CreateGroupIfNotExists gets a group by key. If the grouiop does not exist, it will be created.
func (*Cache) DeleteGroup ¶
type CacheEntry ¶
type IndexEntry ¶
Click to show internal directories.
Click to hide internal directories.