Documentation ¶
Overview ¶
====================================================
# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : redis.go # Created : 2019/1/9 18:49 # Last Modified : 2019/1/9 18:49 # Describe : # # ====================================================
Index ¶
- type Client
- func (c *Client) Add(ctx context.Context, k string, v []byte, ttl int64) error
- func (c *Client) Append(ctx context.Context, k string, v []byte) error
- func (c *Client) Close() error
- func (c *Client) Del(ctx context.Context, k string) error
- func (c *Client) Discard() error
- func (c *Client) Exec() ([]interface{}, error)
- func (c *Client) Expire(ctx context.Context, k string, ttl int64) error
- func (c *Client) Get(ctx context.Context, s string) ([]byte, error)
- func (c *Client) Incr(ctx context.Context, k string) (int64, error)
- func (c *Client) IsMember(ctx context.Context, k string, v []byte) (bool, error)
- func (c *Client) LLen(ctx context.Context, k string) (int64, error)
- func (c *Client) LPop(ctx context.Context, k string) ([]byte, error)
- func (c *Client) Pipeline() *Client
- func (c *Client) Put(ctx context.Context, k string, v []byte, ttl int64) error
- func (c *Client) RPush(ctx context.Context, k string, v []byte) error
- func (c *Client) SMembers(ctx context.Context, k string) ([]string, error)
- func (c *Client) SRem(ctx context.Context, k string, v []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 返回redis的客户端
Click to show internal directories.
Click to hide internal directories.