Documentation
¶
Index ¶
- Constants
- func DecrBy(key string, n int64) int64
- func Del(ks ...string) (int64, error)
- func Exists(key string) bool
- func Expire(k string, t int64) bool
- func Get(key string) []byte
- func GetString(key string) string
- func HGet(k, i string) (string, error)
- func HGetAll(k string) (map[string]string, error)
- func HMSet(k string, fields map[string]interface{}, timeoutSecond int) error
- func HMget(k string, is ...string) ([]interface{}, error)
- func Hdel(k string, is ...string) (int64, error)
- func Hset(k, i, v string, timeoutSecond int) error
- func Incr(key string) int64
- func IncrBy(key string, n int64) int64
- func Init()
- func Lock(k, uniqueValue string, timeoutSecond int) bool
- func LockWait(k, uniqueValue string, timeoutSecond int, lockTimeoutSecond int) bool
- func Set(k, v string) error
- func SetNx(k, v string, timeoutSecond int) error
- func SwitchOpen(key string) bool
- func TestLog()
- func Unlock(k, uniqueValue string) bool
Constants ¶
View Source
const (
ES日志开关 = "es:log:switch:"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.