redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisDB

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

func New

func New(db database.Name) *RedisDB

func (*RedisDB) Delete

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

func (*RedisDB) Get

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

func (*RedisDB) GetListWithPrefix

func (r *RedisDB) GetListWithPrefix(prefix string, limit int64) ([]string, error)

func (*RedisDB) GetString

func (r *RedisDB) GetString(key string) (string, error)

func (*RedisDB) Set

func (r *RedisDB) Set(key string, value any, expiration time.Duration)

func (*RedisDB) SetWithSortKey

func (r *RedisDB) SetWithSortKey(pk string, sk string, value any, expiration time.Duration)

Jump to

Keyboard shortcuts

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