Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is an alternate implementation of a redis cache with built in pooling
func NewCache ¶
func NewCache(client *Client, opts ...CacheOption) *Cache
NewCache returns a CacheV2 struct
func (*Cache) Check ¶
Check is an implementation for our healthcheck endpoint to see if redis is responding to the ping
func (*Cache) WithNamespace ¶
WithNamespace returns a new cache struct with a different namepace using the same underlying connection
type CacheOption ¶
type CacheOption func(*CacheOptions)
func Namespace ¶
func Namespace(ns string) CacheOption
type CacheOptions ¶
func NewCacheOptions ¶
func NewCacheOptions(opts ...CacheOption) CacheOptions
type Client ¶
type Client struct { redis.UniversalClient // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.