Memcache.decr

You're seeing just the function decr, go back to Memcache module for more information.
Link to this function

decr(server, key, opts \\ [])

View Source

Specs

Decrements the current value. Only integer value can be decremented. 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 to 1.

  • :default - (integer) Default value to use in case the key is not found. Defaults to 0.

other options: :cas, :ttl