redis

package
v0.0.0-...-ffb043f Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 3 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 {
	DB *redis.Client
}

func (*RedisDb) Del

func (rd *RedisDb) Del(ctx context.Context, key ...string) *redis.IntCmd

func (*RedisDb) Get

func (rd *RedisDb) Get(ctx context.Context, key string) *redis.StringCmd

func (*RedisDb) GetDel

func (rd *RedisDb) GetDel(ctx context.Context, key string) *redis.StringCmd

func (*RedisDb) Set

func (rd *RedisDb) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd

Jump to

Keyboard shortcuts

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