redis

package
v0.0.0-...-b4fc3f1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlackholeRedis

type BlackholeRedis struct{}

BlackholeRedis is a client that does not retain any data.

func NewBlackholeRedis

func NewBlackholeRedis() *BlackholeRedis

func (*BlackholeRedis) Expire

func (bh *BlackholeRedis) Expire(ctx context.Context, key string, expiration time.Duration) *goredis.BoolCmd

func (*BlackholeRedis) Get

func (*BlackholeRedis) Persist

func (m *BlackholeRedis) Persist(ctx context.Context, key string) *goredis.BoolCmd

func (*BlackholeRedis) Set

func (m *BlackholeRedis) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *goredis.StatusCmd

type MapRedis

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

func NewMapRedis

func NewMapRedis() *MapRedis

func (*MapRedis) Expire

func (m *MapRedis) Expire(ctx context.Context, key string, expiration time.Duration) *goredis.BoolCmd

func (*MapRedis) Get

func (m *MapRedis) Get(ctx context.Context, key string) *goredis.StringCmd

func (*MapRedis) Persist

func (m *MapRedis) Persist(ctx context.Context, key string) *goredis.BoolCmd

func (*MapRedis) Set

func (m *MapRedis) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *goredis.StatusCmd

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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