Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerCacheDriver ¶
type BadgerCacheDriver struct {
// contains filtered or unexported fields
}
func NewBadgerCacheDriver ¶
func NewBadgerCacheDriver(filePath string, opts ...BadgerOption) (*BadgerCacheDriver, error)
func (BadgerCacheDriver) Get ¶
func (b BadgerCacheDriver) Get(domain, key []byte) (value []byte, err error)
func (BadgerCacheDriver) Set ¶
func (b BadgerCacheDriver) Set(domain, key, value []byte) error
type BadgerOption ¶
type BadgerOption func(*badgerCacheOptions)
func WithInMemory ¶
func WithInMemory(inMemory bool) BadgerOption
func WithTTL ¶
func WithTTL(ttl time.Duration) BadgerOption
Click to show internal directories.
Click to hide internal directories.