xredis

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() *redis.Client

func Del

func Del(key string) error

func Get

func Get(key string) string

func HDel

func HDel(key string, field ...string) error

func HGet

func HGet(key, field string) string

func HSet

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

func HSetNx

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

func New

func New() error

持久化处理

func Set

func Set(key string, value interface{}, expire int64) error

* expire:秒数

func SetNx

func SetNx(key string, value interface{}, expire int64) error

Types

type Redis

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

Jump to

Keyboard shortcuts

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