Documentation ¶
Index ¶
- Variables
- func Close() error
- func DecreaseCounter(key string) (result int64, err error)
- func DoCmd(cmd string, params ...any) (reply any, err error)
- func GeoAdd(key, longitude, latitude, member string) (err error)
- func GeoRadiusWithLua(key, longitude, latitude, distance, unit string, page, limit int64) (result []int64, err error)
- func GeoRemove(key, member string) (err error)
- func GetCounter(key string) (result int64, err error)
- func GetInt64s(key string) (value []int64, err error)
- func GetJSONObject(key string, dest interface{}) error
- func GetString(key string) (value string, err error)
- func IncreaseCounter(key string) (result int64, err error)
- func InitRedis(conf *Config) error
- func IsBUSYGROUPErr(err error) bool
- func IsExist(key string) (isExist bool, err error)
- func IsMessageNotFound(err error) bool
- func Set(key, value interface{}, expireTime int64) (err error)
- func SetInt64s(key string, value []int64, expireTime int64) (err error)
- func SetJSONObjectWithNoExpireTime(key string, value interface{}) (err error)
- func SetWithOutExpire(key, value interface{}) (err error)
- func XACK(key, groupName, messageID string) (err error)
- func XAdd(key string, message interface{}) (messageID string, err error)
- func XGroupCreate(key string, groupName string) (err error)
- func XReadBlock(key, groupName, consumer string, message IMessage) (err error)
- type Config
- type GeoRadiusCoordinate
- type GeoRadiusResult
- type IMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMessageNotFoundErr = errors.New("messageNotFound")
)
Functions ¶
func DecreaseCounter ¶
func GeoRadiusWithLua ¶
func GetCounter ¶
func GetJSONObject ¶
func IncreaseCounter ¶
func IsBUSYGROUPErr ¶
func IsMessageNotFound ¶
func SetWithOutExpire ¶
func SetWithOutExpire(key, value interface{}) (err error)
func XGroupCreate ¶ added in v0.1.74
func XReadBlock ¶ added in v0.1.74
Types ¶
type GeoRadiusCoordinate ¶
type GeoRadiusResult ¶
type GeoRadiusResult struct { Member string Distance string Coordinate GeoRadiusCoordinate }
func GeoRadius ¶
func GeoRadius(key, longitude, latitude, distance, unit string) (result []GeoRadiusResult, err error)
Click to show internal directories.
Click to hide internal directories.