Documentation ¶
Overview ¶
Package redis adds built-in Redis support with our common configuration. This will ensure that Go services using "github.com/skuid/spec" are in compliance with our infrastructure expectations.
The package provides two utilities for using Redis. NewStandardRedisClient generates a full-featured Redis client, with preconfigured connection settings from our spec. NewStandardRedisCache generates a more limited Redis cache interface which will automatically marshal and unmarshal into msgpack, also preconfigured with connection settings from our spec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStandardRedisCache ¶
NewStandardRedisCache generates a preconfigured redis cache according to our spec, using msgpack for serialization format. Accepts an *redis.Options object, and overrides the Addr field to use `$REDIS_HOST:6379` instead
Types ¶
This section is empty.