wp_cache_decr


wp_cache_decr ( $key, $offset = 1, $group = '' )

Parameters:
  • (int|string) key The cache key to decrement.
  • (int) offset Optional. The amount by which to decrement the item's value. Default 1.
  • (string) group Optional. The group the key is in. Default empty.
See:
  • WP_Object_Cache::decr()
Returns:
  • (int|bool) The item's new value on success, false on failure.
Defined at:

Description

Decrements numeric cache item's value.

Related Functions

wp_cache_incr, wp_cache_set, wp_cache_add, wp_cache_get, wp_cache_delete

Top Google Results

User discussions

wpseek mobile