plug_attack v0.4.0 PlugAttack.Storage behaviour
Behaviour for the storage backend for various rules.
Link to this section Summary
Link to this section Types
Time of milliseconds since unix epoch.
Link to this section Callbacks
Link to this callback
increment(opts, key, inc, expires_at)
Link to this callback
read(opts, key, now)
Link to this callback
read_sliding_counter(opts, key, now)
read_sliding_counter(opts(), key(), now :: time()) :: non_neg_integer()
Link to this callback
write(opts, key, value, expires_at)
Link to this callback
write_sliding_counter(opts, key, now, expires_at)