Documentation
¶
Index ¶
- Variables
- type Client
- func (client *Client) BFAdd(ctx context.Context, key string, members interface{}) error
- func (client *Client) BFExists(ctx context.Context, key string, members interface{}) (bool, error)
- func (client *Client) BFMAdd(ctx context.Context, key string, members ...interface{}) error
- func (client *Client) BFMExists(ctx context.Context, key string, members ...interface{}) ([]bool, error)
- func (client *Client) BFReserve(ctx context.Context, key string, size int64, errorRate float64) error
- func (client *Client) Client() goredis.Cmdable
- func (client *Client) Decr(ctx context.Context, key string) (int64, error)
- func (client *Client) DecrEx(ctx context.Context, key string, ttl int) (int64, error)
- func (client *Client) Del(ctx context.Context, key string) error
- func (client *Client) Expire(ctx context.Context, key string, ttl int) error
- func (client *Client) Get(ctx context.Context, key string, v interface{}) error
- func (client *Client) GetStr(ctx context.Context, key string) (string, error)
- func (client *Client) HDel(ctx context.Context, key string, field string) error
- func (client *Client) HExists(ctx context.Context, key string, field string) (bool, error)
- func (client *Client) HGet(ctx context.Context, key string, field string) (string, error)
- func (client *Client) HGetAll(ctx context.Context, key string) (map[string]string, error)
- func (client *Client) HGetI(ctx context.Context, key string, field string) (int64, error)
- func (client *Client) HIncrBy(ctx context.Context, key string, field string, value int64) (int64, error)
- func (client *Client) HKeys(ctx context.Context, key string) ([]string, error)
- func (client *Client) HLen(ctx context.Context, key string) (int64, error)
- func (client *Client) HSet(ctx context.Context, key string, field string, value interface{}) error
- func (client *Client) HSetEx(ctx context.Context, key string, field string, value interface{}, ttl int) error
- func (client *Client) HSetNX(ctx context.Context, key string, field string, value interface{}) (bool, error)
- func (client *Client) HSetNXEx(ctx context.Context, key string, field string, value interface{}, ttl int) (bool, error)
- func (client *Client) Incr(ctx context.Context, key string) (int64, error)
- func (client *Client) IncrEx(ctx context.Context, key string, ttl int) (int64, error)
- func (client *Client) SAdd(ctx context.Context, key string, members ...interface{}) error
- func (client *Client) SCard(ctx context.Context, key string) int64
- func (client *Client) SIsMember(ctx context.Context, key string, member interface{}) (bool, error)
- func (client *Client) SMembers(ctx context.Context, key string) []string
- func (client *Client) SRem(ctx context.Context, key string, members ...interface{}) error
- func (client *Client) Set(ctx context.Context, key string, v interface{}, ttl int) error
- func (client *Client) SetEx(ctx context.Context, key string, v interface{}, ttl int) (string, error)
- func (client *Client) SetNX(ctx context.Context, key string, v interface{}, ttl int) (bool, error)
- func (client *Client) SetNXEx(ctx context.Context, key string, v interface{}, ttl int) (bool, string, error)
- func (client *Client) SetNXStr(ctx context.Context, key string, v string, ttl int) (bool, error)
- func (client *Client) SetStr(ctx context.Context, key string, v string, ttl int) error
- func (client *Client) TTL(ctx context.Context, key string) (time.Duration, error)
- func (client *Client) ZAddMember(ctx context.Context, key string, member interface{}, score float64) error
- func (client *Client) ZRangeWithScores(ctx context.Context, key string, start int64, stop int64) ([]goredis.Z, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("redis: key not found")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ZAddMember ¶ added in v0.0.10
type Config ¶
type Config struct { Addresses []string `mapstructure:"addresses" json:"addresses" yaml:"addresses"` Password string `mapstructure:"password" json:"password" yaml:"password"` DB int `mapstructure:"database" json:"database" yaml:"database"` Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"` }
Click to show internal directories.
Click to hide internal directories.