kvdb

package
v1.6.5-rc42 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 8 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 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) *RedisDB

func RedisDBKeyFromContext added in v1.2.5

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

func (*RedisDB) DelKey added in v1.2.5

func (r *RedisDB) DelKey(key string) error

func (*RedisDB) Get added in v1.2.5

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

func (*RedisDB) GetKey added in v1.2.5

func (r *RedisDB) GetKey(key string) ([]byte, error)

GetKey GET key

func (*RedisDB) IncrBy added in v1.2.5

func (r *RedisDB) IncrBy(key string, value []byte) ([]byte, error)

func (*RedisDB) Set added in v1.2.5

func (r *RedisDB) Set(key string, value []byte) error

func (*RedisDB) SetKey added in v1.2.5

func (r *RedisDB) SetKey(key string, value []byte) error

SetKey SET key value

func (*RedisDB) SetKeyWithEX added in v1.2.5

func (r *RedisDB) SetKeyWithEX(key string, value []byte, exp int64) error

Jump to

Keyboard shortcuts

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