Uses
Uses | Description |
---|---|
wp-includes/class-wp-object-cache.php: WP_Object_Cache::decr() | Decrements numeric cache item’s value. |
Decrements numeric cache item’s value.
(int|string) (Required) The cache key to decrement.
(int) (Optional) The amount by which to decrement the item's value.
Default value: 1
(string) (Optional) The group the key is in.
Default value: ''
(int|false) The item's new value on success, false on failure.
File: wp-includes/cache.php
function wp_cache_decr( $key, $offset = 1, $group = '' ) { global $wp_object_cache; return $wp_object_cache->decr( $key, $offset, $group ); }
Version | Description |
---|---|
3.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_cache_decr