hammer_backend_redis v1.0.0 Hammer.Backend.Redis View Source
Documentation for Hammer.Backend.Redis
This backend uses the Redix library to connect to Redis.
The backend process is started by calling start_link
:
Hammer.Backend.Redis.start_link(
expiry_ms: 60_000 * 10,
redix_config: [host: "example.com", port: 5050]
)
Options are:
expiry_ms
: Expiry time of buckets in milliseconds, used to set TTL on Redis keysredix_config
: Keyword list of options to theRedix
redis client, also aliased toredis_config
Link to this section Summary
Functions
Record a hit in the bucket identified by key
Delete all buckets associated with id
Retrieve information about the bucket identified by key
Link to this section Functions
Record a hit in the bucket identified by key
Delete all buckets associated with id
.
Retrieve information about the bucket identified by key