wp_cache_decr() – Decrements numeric cache item’s value.

You appear to be a bot. Output may be restricted

Description

Decrements numeric cache item's value.

Usage

$int|false = wp_cache_decr( $key, $offset, $group );

Parameters

$key
( int|string ) required – The cache key to decrement.
$offset
( int ) optional default: 1 – Optional. The amount by which to decrement the item's value. Default 1.
$group
( string ) optional – Optional. The group the key is in. Default empty.

Returns

int|false The item's new value on success, false on failure.

Source

File name: wordpress/wp-includes/cache.php
Lines:

1 to 5 of 5
function wp_cache_decr( $key, $offset = 1, $group = '' ) {
  global $wp_object_cache;

  return $wp_object_cache->decr( $key, $offset, $group );
}
 

 View on GitHub View on Trac