plug_attack v0.1.0 PlugAttack.Storage behaviour

Behaviour for the storage backend for various rules.

Summary

Types

expires_at()
expires_at :: non_neg_integer
key()
key :: {atom, term, integer}
opts()
opts :: term

Callbacks

increment(opts, key, inc, expires_at)
increment(opts, key, inc :: integer, expires_at) :: integer