Documentation
¶
Index ¶
- func Between(start int64, stop int64) *optionBetween
- func Bool() *optionSerializer
- func Bytes() *optionSerializer
- func Close(value int64) *interval
- func Count(count int) *optionCount
- func CountWithScores(count int) *optionCount
- func Default() *optionLabel
- func Expiration(expiration time.Duration) *optionExpiration
- func Field(key string, value interface{}, opts ...option) *optionField
- func Float32() *optionSerializer
- func Float64() *optionSerializer
- func Int() *optionSerializer
- func Int64() *optionSerializer
- func Interval(min *interval, max *interval) *optionInterval
- func JSON() *optionSerializer
- func KeepExpiration() *optionExpiration
- func Label(label string) *optionLabel
- func Member(value interface{}) *optionValue
- func Msgpack() *optionSerializer
- func Open(value int64) *interval
- func Paging(page int64, size int64) *optionBetween
- func Proto() *optionSerializer
- func String() *optionSerializer
- func Time() *optionSerializer
- func Uint64() *optionSerializer
- func Value(value interface{}) *optionValue
- func XML() *optionSerializer
- func Z(score int64, value interface{}) *optionZ
- type Client
- func (c *Client) Del(ctx context.Context, key string, opts ...option) (err error)
- func (c *Client) Expire(ctx context.Context, key string, opts ...putOption) (err error)
- func (c *Client) Get(ctx context.Context, key string, value interface{}, opts ...option) (exist bool, err error)
- func (c *Client) HDel(ctx context.Context, key string, field string, opts ...option) (int64, error)
- func (c *Client) HGet(ctx context.Context, key string, field string, value interface{}, ...) (exist bool, err error)
- func (c *Client) HIncrBy(ctx context.Context, key string, field string, value int64, opts ...option) (int64, error)
- func (c *Client) HKeys(ctx context.Context, key string, opts ...option) (keys []string, err error)
- func (c *Client) HSet(ctx context.Context, key string, opts ...fieldOption) (affected int64, err error)
- func (c *Client) LLen(ctx context.Context, key string, opts ...option) (total int64, err error)
- func (c *Client) LPush(ctx context.Context, key string, opts ...valuesOption) (affected int64, err error)
- func (c *Client) LRange(ctx context.Context, key string, values interface{}, opts ...rangeOption) (err error)
- func (c *Client) RPush(ctx context.Context, key string, opts ...valuesOption) (affected int64, err error)
- func (c *Client) Redis(opts ...option) *redis.Client
- func (c *Client) SAdd(ctx context.Context, key string, opts ...valuesOption) (affected int64, err error)
- func (c *Client) SCard(ctx context.Context, key string, opts ...option) (total int64, err error)
- func (c *Client) SMembers(ctx context.Context, key string, values interface{}, opts ...option) (err error)
- func (c *Client) SRem(ctx context.Context, key string, opts ...valuesOption) (affected int64, err error)
- func (c *Client) Set(ctx context.Context, key string, value interface{}, opts ...putOption) (err error)
- func (c *Client) ZAdd(ctx context.Context, key string, opts ...membersOption) (affected int64, err error)
- func (c *Client) ZCard(ctx context.Context, key string, opts ...option) (total int64, err error)
- func (c *Client) ZCount(ctx context.Context, key string, opts ...intervalOption) (total int64, err error)
- func (c *Client) ZRandMember(ctx context.Context, key string, values interface{}, opts ...countOption) (err error)
- func (c *Client) ZRange(ctx context.Context, key string, values interface{}, opts ...rangeOption) (err error)
- func (c *Client) ZRangeWithScores(ctx context.Context, key string, values []score, opts ...rangeOption) (err error)
- func (c *Client) ZRem(ctx context.Context, key string, opts ...valuesOption) (total int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client Redis客户端
func (*Client) ZRandMember ¶
func (*Client) ZRangeWithScores ¶
Source Files
¶
- bytes_string.go
- client.go
- client_hash.go
- client_key.go
- client_list.go
- client_method.go
- client_set.go
- client_string.go
- client_zset.go
- config.go
- const.go
- count_option.go
- field.go
- field_option.go
- interval.go
- interval_option.go
- len_type.go
- member.go
- members_option.go
- must.go
- option.go
- option_between.go
- option_count.go
- option_expiration.go
- option_field.go
- option_interval.go
- option_label.go
- option_serializer.go
- option_value.go
- option_z.go
- pangu.go
- pangu_config.go
- put_option.go
- put_values_type.go
- range_option.go
- range_type.go
- redis.go
- redis_options.go
- score.go
- serializer.go
- server.go
- values_option.go
Click to show internal directories.
Click to hide internal directories.