Documentation
¶
Index ¶
- type Lock
- type Redis
- func (r Redis) Clear(k string) error
- func (r Redis) Do(command string, args ...interface{}) (res interface{}, err error)
- func (r Redis) Get(k string) (interface{}, error)
- func (r Redis) GetInt64(k string) (int64, error)
- func (r Redis) GetObj(k string, objPtr interface{}) error
- func (r Redis) GetString(k string) (string, error)
- func (r Redis) IsError(err error) bool
- func (r Redis) Set(k string, v interface{}, expire time.Duration) error
- func (r Redis) SetObj(k string, objPtr interface{}, expire time.Duration) error
- func (r Redis) TryLock(resource string, timeoutSecond int) (lock *Lock, err error)
- func (r Redis) TryLockWithMinTime(resource string, minTimeSecond int) (lock *Lock, err error)
- func (r Redis) WriteExpireAndNotExist(key, value string, expireTime int64) (ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.