gredis

package
v0.0.0-...-61dbfe3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisConn *redis.Pool

Functions

func Delete

func Delete(key string) (bool, error)

Delete delete a kye

func EvalSHA

func EvalSHA(keyCount int, src []byte, arg []string) (interface{}, error)

*

  • 执行lua脚本
  • @param keyCount key个数
  • @param src 脚本
  • @param arg 脚本参数
  • @return reply
  • @return err

func Exists

func Exists(key string) bool

Exists check a key

func Get

func Get(key string) ([]byte, error)

Get get a key

func HGet

func HGet(key string) ([]byte, error)

HGet get a key

func HSet

func HSet(key string, data interface{}) error

HSet a key/value

func LikeDeletes

func LikeDeletes(key string) error

LikeDeletes batch delete

func Set

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

Set a key/value

func Setup

func Setup() error

Setup Initialize the Redis instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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