kredis

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient(c *redis.Client) redis.UniversalClient

Types

type KIntCmd

type KIntCmd struct {
	Val int64
	Err string
}

type KStatusCmd

type KStatusCmd struct {
	Val string
	Err string
}

type KStringCmd

type KStringCmd struct {
	Val string
	Err string
}

type RedisClient

type RedisClient struct {
	*redis.Client
	// contains filtered or unexported fields
}

func (*RedisClient) Del

func (rc *RedisClient) Del(ctx context.Context, keys ...string) *redis.IntCmd

func (*RedisClient) Get

func (rc *RedisClient) Get(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) Set

func (rc *RedisClient) 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