Documentation
¶
Overview ¶
Package redis contains generic utilities for dealing with Redis Clusters. Directly compatible with AWS ElastiCache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterClient ¶
func ClusterClient() *redis.ClusterClient
ClusterClient creates a pointer to a redis cluster client. By default looks for a redis cluster at localhost on port 7000. Address can be configured with the REDIS_HOST environment variable. A password can be configured with the REDIS_PASSWORD environment variable. An example for elasticache:
somecluster.amazonaws.com:6379
func ClusterClientWithOpts ¶
func ClusterClientWithOpts(options *redis.ClusterOptions) *redis.ClusterClient
ClusterClientWithOpts creates a pointer to a redis cluster client. Supports passing a pointer to a redis.Options struct with //configurable parameters. An example for elasticache:
somecluster.amazonaws.com:6379
func StandardClient ¶
StandardClient creates a pointer to a redis client. By default looks for a redis server at localhost on port 6379. Address can be configured with the REDIS_HOST environment variable. An example for elasticache:
someserver.amazonaws.com:6379
Types ¶
This section is empty.