Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Datastore ¶
type Datastore interface { // Responsible for incrementing keys. Returns the post increment counts. // // Should also add relevant expiry based on MaxLifespan of keys to ensure cleanup. Ideally the expiry should be set on the first increment of the key. IncrKeys(ctx context.Context, keys []KeyConfig) ([]int, []error) }
type RedisDatastore ¶ added in v1.0.3
type RedisDatastore struct { Client *redis.Client ClusterClient *redis.ClusterClient }
RedisDatastore represents a datastore backed by Redis.
Click to show internal directories.
Click to hide internal directories.