redis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRedis

func InitRedis()

Types

type ClientType

type ClientType struct {
	RedisCon *redis.Client
}
var RedisClient *ClientType

func (*ClientType) Del

func (Client *ClientType) Del(key string) *redis.Client

func (*ClientType) Get

func (Client *ClientType) Get(key string) (string, *redis.Client)

func (*ClientType) Set

func (Client *ClientType) Set(key string, value interface{}, expiration time.Duration) *redis.Client

Jump to

Keyboard shortcuts

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