embed

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBadgerCache

func NewBadgerCache(url *url.URL) (cache.Cache, error)

Types

type BadgerCache

type BadgerCache struct {
	// contains filtered or unexported fields
}

func (*BadgerCache) Close

func (b *BadgerCache) Close() error

func (*BadgerCache) Delete

func (b *BadgerCache) Delete(ctx context.Context, key string, opts ...cache.DeleteOptions) error

func (*BadgerCache) Exist

func (b *BadgerCache) Exist(ctx context.Context, key string) bool

func (*BadgerCache) Get

func (b *BadgerCache) Get(ctx context.Context, key string) ([]byte, error)

func (*BadgerCache) GetFloat

func (b *BadgerCache) GetFloat(ctx context.Context, key string) (float64, error)

func (*BadgerCache) GetInt

func (b *BadgerCache) GetInt(ctx context.Context, key string) (int64, error)

func (*BadgerCache) GetKeys

func (b *BadgerCache) GetKeys(ctx context.Context, pattern string) []string

func (*BadgerCache) GetObject

func (b *BadgerCache) GetObject(ctx context.Context, key string, doc interface{}) error

func (*BadgerCache) GetString

func (b *BadgerCache) GetString(ctx context.Context, key string) (string, error)

func (*BadgerCache) Increment

func (c *BadgerCache) Increment(ctx context.Context, key string, expiration int) (int64, error)

func (*BadgerCache) RemainingTime

func (b *BadgerCache) RemainingTime(ctx context.Context, key string) int

func (*BadgerCache) Set

func (b *BadgerCache) Set(ctx context.Context, key string, value interface{}, expiration int) error

Jump to

Keyboard shortcuts

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