db

package
v0.0.0-...-db1acbc Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DnsConf Conf.ConfMain
View Source
var Rdb *redis.Client

Functions

func Del

func Del(keys ...string) (int64, error)

func Get

func Get(key string) (string, error)

func HDel

func HDel(key string, fields ...string) (int64, error)

func HExistsResult

func HExistsResult(key, filed string) (bool, error)

func HExistsVal

func HExistsVal(key, filed string) bool

func HGet

func HGet(key, filed string) (string, error)

func HGetAll

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

func HSet

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

func HSetVal

func HSetVal(key, filed string, value interface{}) bool

func Keys

func Keys(pattern string) ([]string, error)

func Scan

func Scan(cursor uint64, match string, count int64) ([]string, error)

func Set

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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