Versions in this module Expand all Collapse all v0 v0.0.3 Oct 22, 2019 v0.0.2 Oct 22, 2019 Changes in this version + var ErrDestinationNotSet = errors.New("destination is not set") + var ErrKeyNotExist = errors.New("key does not exist") + var ErrKeysNotSet = errors.New("keys are not set") + var ErrNil = redis.ErrNil + var ErrTTLNotSet = errors.New("ttl is not set") + var NegativeInf = "-inf" + var PositiveInf = "+inf" + type RedisConf struct + DB int + Server string + type RedisSession struct + func NewRedisSessionWithPool(pool *redis.Pool) *RedisSession + func (r *RedisSession) AddPrefix(name string) string + func (r *RedisSession) AddSetMembers(key string, rest ...interface{}) (int, error) + func (r *RedisSession) Bool(reply interface{}) (bool, error) + func (r *RedisSession) Close() error + func (r *RedisSession) CreatePubSubConn() *redis.PubSubConn + func (r *RedisSession) Decr(key string) (int, error) + func (r *RedisSession) Del(args ...interface{}) (int, error) + func (r *RedisSession) DeleteHashSetField(key string, rest ...interface{}) (int, error) + func (r *RedisSession) Do(cmd string, args ...interface{}) (interface{}, error) + func (r *RedisSession) Exists(key string) bool + func (r *RedisSession) Expire(key string, timeout time.Duration) error + func (r *RedisSession) Get(key string) (string, error) + func (r *RedisSession) GetHashLength(key string) (int, error) + func (r *RedisSession) GetHashMultipleSet(key string, rest ...interface{}) ([]interface{}, error) + func (r *RedisSession) GetHashSetField(key string, field string) (string, error) + func (r *RedisSession) GetInt(key string) (int, error) + func (r *RedisSession) GetPrefix() string + func (r *RedisSession) GetSetMembers(key string) ([]interface{}, error) + func (r *RedisSession) HashGetAll(key string) ([]interface{}, error) + func (r *RedisSession) HashMultipleSet(key string, item map[string]interface{}) error + func (r *RedisSession) HashSet(key, member string, value interface{}) (int, error) + func (r *RedisSession) HashSetIfNotExists(key, field string, item interface{}) (bool, error) + func (r *RedisSession) Incr(key string) (int, error) + func (r *RedisSession) IncrBy(key string, by int64) (int64, error) + func (r *RedisSession) Int(reply interface{}) (int, error) + func (r *RedisSession) Int64(reply interface{}) (int64, error) + func (r *RedisSession) IsSetMember(key string, value string) (int, error) + func (r *RedisSession) Keys(key string) ([]interface{}, error) + func (r *RedisSession) MGet(keys []string) ([]interface{}, error) + func (r *RedisSession) MoveSetMember(source, destination, member string) (int, error) + func (r *RedisSession) Ping() error + func (r *RedisSession) Pool() *redis.Pool + func (r *RedisSession) PopSetMember(key string) (string, error) + func (r *RedisSession) RandomSetMember(key string) (string, error) + func (r *RedisSession) RemoveSetMembers(key string, rest ...interface{}) (int, error) + func (r *RedisSession) Scard(key string) (int, error) + func (r *RedisSession) Send(cmd string, args ...interface{}) error + func (r *RedisSession) Set(key, value string) error + func (r *RedisSession) SetPrefix(name string) + func (r *RedisSession) Setex(key string, timeout time.Duration, item interface{}) error + func (r *RedisSession) SortBy(key, sortBy, order string) ([]interface{}, error) + func (r *RedisSession) SortedSetAddSingle(key, member string, score interface{}) error + func (r *RedisSession) SortedSetIncrBy(key string, incrBy, item interface{}) (float64, error) + func (r *RedisSession) SortedSetRangebyScore(key string, rest ...interface{}) ([]interface{}, error) + func (r *RedisSession) SortedSetRem(key string, members ...interface{}) (int64, error) + func (r *RedisSession) SortedSetReverseRange(key string, rest ...interface{}) ([]interface{}, error) + func (r *RedisSession) SortedSetScore(key string, member interface{}) (float64, error) + func (r *RedisSession) SortedSetsUnion(destination string, keys []string, weights []interface{}, aggregate string) (int64, error) + func (r *RedisSession) String(reply interface{}) (string, error) + func (r *RedisSession) TTL(key string) (time.Duration, error) + func (r *RedisSession) Values(reply interface{}) ([]interface{}, error)