Documentation
¶
Overview ¶
Package badger is the BadgerDB 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 Badger CacheClient
func (*CacheClient) Close ¶
func (c *CacheClient) Close() error
func (*CacheClient) Connect ¶
func (c *CacheClient) Connect() error
Connect opens the configured Badger key-value store
func (*CacheClient) Remove ¶
func (c *CacheClient) Remove(cacheKeys ...string) error
func (*CacheClient) Retrieve ¶
func (c *CacheClient) Retrieve(cacheKey string) ([]byte, status.LookupStatus, error)
Retrieve gets data from the Badger Cache using the provided Key because Badger manages Object Expiration internally, allowExpired is not used.
Click to show internal directories.
Click to hide internal directories.