Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Get runs the redis GET command
Get(key string) (string, error)
// Set runs the redis SET command, to set an expiration, use the SetEX command
Set(key string, value interface{}) error
// SetEX runs the redis SETEX command
SetEX(key string, value interface{}, expiration time.Duration) error
// Close closes the client, releasing any open resources
Close() error
}
Client is the interface for redis client
Click to show internal directories.
Click to hide internal directories.