cache

package
v0.0.0-...-ad95247 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL