Documentation ¶
Index ¶
- type Client
- type Clusterclient
- func (c *Clusterclient) Clientinfo() (string, error)
- func (c *Clusterclient) Close()
- func (c *Clusterclient) Flushall()
- func (c *Clusterclient) Get(key string) (string, error)
- func (c *Clusterclient) Getdo(key string) (string, error)
- func (c *Clusterclient) Set(key, value string, exp int)
- func (c *Clusterclient) Setdo(key, value string, exp time.Duration)
- func (c *Clusterclient) Setnx(key, value string, exp time.Duration)
- type Redis
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 is the Redis client wrapper.
type Clusterclient ¶
type Clusterclient struct {
// contains filtered or unexported fields
}
func (*Clusterclient) Clientinfo ¶
func (c *Clusterclient) Clientinfo() (string, error)
Clientinfo returns the Client info.
func (*Clusterclient) Close ¶
func (c *Clusterclient) Close()
Close returns the value for the given key.
func (*Clusterclient) Flushall ¶
func (c *Clusterclient) Flushall()
func (*Clusterclient) Get ¶
func (c *Clusterclient) Get(key string) (string, error)
Get returns the value for the given key.
func (*Clusterclient) Getdo ¶
func (c *Clusterclient) Getdo(key string) (string, error)
Getdo returns the value for the given key.
func (*Clusterclient) Set ¶
func (c *Clusterclient) Set(key, value string, exp int)
Set the given key with the given value and expiration time.
Click to show internal directories.
Click to hide internal directories.