Versions in this module Expand all Collapse all v0 v0.1.0 Oct 3, 2022 Changes in this version + type Config struct + Addr string + DB int + KeyPrefix string + Password string + type Store struct + func NewStore(cfg *Config) *Store + func NewStoreWithClient(cli *redis.Client, keyPrefix string) *Store + func NewStoreWithClusterClient(cli *redis.ClusterClient, keyPrefix string) *Store + func (s *Store) Check(key string) (bool, error) + func (s *Store) Close() error + func (s *Store) Delete(key string) error + func (s *Store) Get(key string) interface{} + func (s *Store) IsExist(key string) bool + func (s *Store) Set(key string, v interface{}, expiration time.Duration) error + func (s *Store) ZAdd(key string, members ...redis.Z) (bool, error) + func (s *Store) ZCount(key, min, max string) (int64, error) + func (s *Store) ZIncrBy(key string, increment float64, member string) (bool, error) + func (s *Store) ZRange(key string, start, stop int64) ([]string, error) + func (s *Store) ZRangeByScore(key string, opt redis.ZRangeBy) ([]string, error) + func (s *Store) ZRem(key string, members ...interface{}) (bool, error) + func (s *Store) ZRemRangeByScore(key, min, max string) (bool, error) + func (s *Store) ZRevRange(key string, start, stop int64) ([]string, error)