kvdb

package
v1.6.5-rc51 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemDB

func NewMemDB() *memDB

func WithRedisDBKeyContext added in v1.2.5

func WithRedisDBKeyContext(redisDB *RedisDB) func(context.Context) context.Context

Types

type Cmd

type Cmd = confredis.Cmd

type RedisDB added in v1.2.5

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

func MustRedisDBKeyFromContext added in v1.2.5

func MustRedisDBKeyFromContext(ctx context.Context) *RedisDB

func NewRedisDB

func NewRedisDB(d *confredis.Redis, prefix string) *RedisDB

func RedisDBKeyFromContext added in v1.2.5

func RedisDBKeyFromContext(ctx context.Context) (*RedisDB, bool)

func (*RedisDB) Get added in v1.2.5

func (r *RedisDB) Get(k string) ([]byte, error)

func (*RedisDB) Set added in v1.2.5

func (r *RedisDB) Set(k string, v []byte) error

Jump to

Keyboard shortcuts

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