wp_cache_decr( int|string $key, int $offset = 1, string $group = '' )
Decrements numeric cache item’s value.
Description Description
See also See also
Parameters Parameters
- $key
-
(int|string) (Required) The cache key to decrement.
- $offset
-
(int) (Optional) The amount by which to decrement the item's value.
Default value: 1
- $group
-
(string) (Optional) The group the key is in.
Default value: ''
Return Return
(false|int) False on failure, the item's new value on success.
Source Source
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 ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |