Documentation
¶
Overview ¶
Package bbolt is the bbolt implementation of the Trickster Cache
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheClient ¶
type CacheClient struct {
Name string
Config *options.Options
// contains filtered or unexported fields
}
CacheClient describes a BBolt CacheClient
func New ¶
func New(cacheName, fileName, bucketName string, opts *options.Options) *CacheClient
New returns a new bbolt cache as a Trickster Cache Interface type
func (*CacheClient) Close ¶
func (c *CacheClient) Close() error
func (*CacheClient) Connect ¶
func (c *CacheClient) Connect() error
Connect instantiates the Cache mutex map and starts the Expired Entry Reaper goroutine
func (*CacheClient) Remove ¶
func (c *CacheClient) Remove(cacheKey ...string) error
func (*CacheClient) Retrieve ¶
func (c *CacheClient) Retrieve(cacheKey string) ([]byte, status.LookupStatus, error)
Click to show internal directories.
Click to hide internal directories.