Documentation ¶
Overview ¶
Package redis helps creating redis connection pools
Index ¶
- func Client() *redis.Client
- func ClusterClient() *redis.ClusterClient
- func CustomClient(opts *redis.Options) *redis.Client
- func CustomClusterClient(opts *redis.ClusterOptions) *redis.ClusterClient
- func WithClusterContext(ctx context.Context, c *redis.ClusterClient) *redis.ClusterClient
- func WithContext(ctx context.Context, c *redis.Client) *redis.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterClient ¶
func ClusterClient() *redis.ClusterClient
ClusterClient with environment based configuration
func CustomClient ¶
CustomClient with passed configuration
func CustomClusterClient ¶
func CustomClusterClient(opts *redis.ClusterOptions) *redis.ClusterClient
CustomClusterClient with passed configuration
func WithClusterContext ¶
func WithClusterContext(ctx context.Context, c *redis.ClusterClient) *redis.ClusterClient
WithClusterContext adds a logging and tracing wrapper to the passed client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.