Redis Data Storage
A new record is created for each client as identified by each policy.
These records are created with an expiration corresponding to the rate limiting policys defined interval. The native Redis expiration capability will automatically remove expired records.
Each record consists of a single key which is used to store an integer value. The integer value is the number of observed hits.
The format of the key is as
follows:
<key-prefix>-<policy hash><client hash>| Field | Description | Example |
|---|---|---|
| <key-prefix> | A prefix which is applied to all keys in this database. This is the value of [redis] key-prefix. |
isva |
| <policy-hash> | A SHA256 hash of the policy YAML content which is being applied to this client. | d9ae...d5fd |
| <client-hash> | A SHA256 hash of the criteria which uniquely identifies this client according to the rate limiting policy being applied. | 504f...3ba8 |
Note: The rate limiting policy content itself or details about clients are not stored in
Redis, only a SHA256 hash of this information.