Documentation ¶
Index ¶
- type Client
- type Redis
- func (channel *Redis) Close() error
- func (channel *Redis) Expire(key string, expiration time.Duration) (bool, error)
- func (channel *Redis) LRange(key string, start int64, stop int64) ([]string, error)
- func (channel *Redis) SAdd(key string, member ...interface{}) (int64, error)
- func (channel *Redis) SIsMember(key string, member interface{}) (bool, error)
- func (channel *Redis) SMembers(key string) ([]string, error)
- func (channel *Redis) SPop(key string) (string, error)
- func (channel *Redis) SRem(key string, members ...interface{}) (int64, error)
- func (channel *Redis) ZAdd(key string, members ...redis.Z) (int64, error)
- func (channel *Redis) ZCard(key string) (int64, error)
- func (channel *Redis) ZRemRangeByScore(key, min, max string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SIsMember(string, interface{}) (bool, error) SAdd(string, ...interface{}) (int64, error) Close() error SPop(string) (string, error) SRem(string, ...interface{}) (int64, error) SMembers(string) ([]string, error) ZAdd(key string, members ...redis.Z) (int64, error) ZRemRangeByScore(key, min, max string) (int64, error) ZCard(key string) (int64, error) Expire(key string, expiration time.Duration) (bool, error) }
Client interface of redis which this application depends on
type Redis ¶
Redis implementation of Client
Click to show internal directories.
Click to hide internal directories.