redis

package
v1.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 3 Imported by: 0

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

func StandardClient() *redis.Client

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

func StandardClientWithOpts

func StandardClientWithOpts(options *redis.Options) *redis.Client

StandardClientWithOpts creates a pointer to a redis client. Supports passing a pointer to a redis.Options struct with configurable parameters. An example for elasticache:

someserver.amazonaws.com:6379

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL