redis

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(key string) (int, error)

*

  • 删除key

func Get

func Get(key string) (string, error)

取值

func HDel

func HDel(key, field string) error

* 删除hash值

func HGet

func HGet(key string, field interface{}) (interface{}, error)

func HGetAll

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

func HGetBytes

func HGetBytes(key string, field interface{}) ([]byte, error)

func HGetString

func HGetString(key string, field interface{}) (string, error)

func HGetStringMap

func HGetStringMap(key string, field interface{}) (map[string]string, error)

func HMSet

func HMSet(args ...interface{}) (interface{}, error)

* hash批量存值, * args (key,field,value,field,value,field,value...) 域,名,值,名,值,名,值 ... * 2020/06/06

func HSet

func HSet(key string, field, value interface{}) (interface{}, error)

* hash存值, * key 域 * field 名 * value 值 * 2020/06/06

func HSetExpire

func HSetExpire(key string, expire int) (interface{}, error)

* hash存值, * key 域 * expire 过期时长 * 2020/06/06

func Set

func Set(args ...interface{}) (interface{}, error)

* 存值, * args,范围(key, value)或(key, value,expire) * 2020/06/06

func SetLock

func SetLock(args ...interface{}) (bool, error)

*

  • 设锁
  • 2020/01/15

Types

This section is empty.

Jump to

Keyboard shortcuts

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