redis

package
v0.0.0-...-8b35975 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisClient *redis.Client

RedisClient export to communicate with Redis Client

Functions

func Exists

func Exists(key string) (error, bool)

Exists check a key

func Get

func Get(key string) (string, error)

Get get a key

func InitRedisClient

func InitRedisClient(redisHost string, redisPort int) error

InitRedisClient init Redis Client

func Set

func Set(key string, data interface{}, time time.Duration) error

Set a key/value

Types

This section is empty.

Jump to

Keyboard shortcuts

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