Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Close() error
- func (c *Client) Connect() error
- func (c *Client) Delete(key string) error
- func (c *Client) Get(key string) ([]byte, error)
- func (c *Client) Key(key string) string
- func (c *Client) PruneExpired() error
- func (c *Client) Set(key string, value []byte) error
- func (c *Client) SetTTL(key string, value []byte, ttl time.Duration) error
- func (c *Client) TTL() time.Duration
- type Config
Constants ¶
View Source
const (
ErrMissingAddress = utils.Error("Missing address")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Client *redis.Client // contains filtered or unexported fields }
func (*Client) PruneExpired ¶
Prune stub method for compatibility with kv.KV interface
type Config ¶
type Config struct { Address string `json:"address"` // Address of the Client server DB int `json:"db"` // DB is the Client database to use KeyPrefix string `json:"keyPrefix"` // KeyPrefix is the prefix for session keys in Client TTL uint `json:"ttl"` // TTl in seconds TimeoutSeconds uint `json:"timeoutSeconds"` // TimeoutSeconds seconds to wait for operation secure.DefaultCredentialConfig tls.ServerConfig }
Config
Click to show internal directories.
Click to hide internal directories.