Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Init(string) error InitWithDefault() error ExecuteRawCommand(commandName string, args ...interface{}) (string, error) }
Client a contract interface for any caching third party client to be used with our system
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
RedisClient implementation for the cache client interface using redis
func (*RedisClient) ExecuteRawCommand ¶
func (rc *RedisClient) ExecuteRawCommand(commandName string, args ...interface{}) (string, error)
ExecuteRawCommand sends a command string to redis
func (*RedisClient) Init ¶
func (rc *RedisClient) Init(connURL string) error
Init intialize a connection to redis server
func (*RedisClient) InitWithDefault ¶
func (rc *RedisClient) InitWithDefault() error
InitWithDefault intialize a connection to redis server
Click to show internal directories.
Click to hide internal directories.