Memcache.incr
You're seeing just the function
incr
, go back to Memcache module for more information.
Specs
incr(GenServer.server(), binary(), Keyword.t()) :: fetch_integer_result()
Increments the current value. Only integer value can be
incremented. Returns {:error, "Incr/Decr on non-numeric value"}
if
the value stored in the server is not numeric.
Options
:by
- (integer) The amount to add to the existing value. Defaults to1
.:default
- (integer) Default value to use in case the key is not found. Defaults to0
.
other options: :cas
, :ttl