Documentation ¶
Overview ¶
Package implements the redis database helpers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedis ¶
GetRedis function returns a pointer to the `goredis.Client` instance used to communicate with Redis server. The function simply returns the Redis client instance stored in a `redisdb` singleton object. This function is used to obtain the Redis client connection in other parts of the application.
func New ¶
func New(dbc *databasecredhelper.VaultDBCredentials, host string, port string) *rediscon
Types ¶
type RedisDB ¶
type RedisDB interface { Get(ctx context.Context, key string, output *string) error Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error Delete(ctx context.Context, key string) error GetJSON(context.Context, string, string, interface{}) error SetJSON(ctx context.Context, key string, path string, value interface{}) error clients.CommonClient }
Click to show internal directories.
Click to hide internal directories.