reids

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 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 RedisC

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

func DefaultRedis

func DefaultRedis(ctx context.Context, addr string, pwd ...string) *RedisC

func InitRedis

func InitRedis(ctx context.Context, addr, pwd string, DB int) *RedisC

func (*RedisC) Del

func (c *RedisC) Del(key string) *redis.IntCmd

func (*RedisC) Get

func (c *RedisC) Get(key string) *redis.StringCmd

func (*RedisC) Set

func (c *RedisC) Set(key string, value interface{}, expiration time.Duration) *redis.StatusCmd

func (*RedisC) SetEx

func (c *RedisC) SetEx(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