expire throttle keys in redis

Expire throttle keys in redis so that they are automatically removed if no activity is recorded for a given key.
Avoid multi-line ?: (the ternary operator); use `if`/`unless` instead.<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.