Documentation ¶
Overview ¶
====================================================
# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : local.go # Created : 2019/1/15 16:48 # Last Modified : 2019/1/15 16:48 # 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) Get(ctx context.Context, s string) ([]byte, error)
- func (c *Client) IsMember(ctx context.Context, k string, v []byte) (bool, error)
- func (c *Client) Put(ctx context.Context, k string, v []byte, ttl int64) 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 本地缓存的客户端
Click to show internal directories.
Click to hide internal directories.