update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -5,12 +5,8 @@
|
||||
use Safe\Exceptions\ApcuException;
|
||||
|
||||
/**
|
||||
* Retrieves cached information and meta-data from APC's data store.
|
||||
*
|
||||
* @param bool $limited If limited is TRUE, the
|
||||
* return value will exclude the individual list of cache entries. This
|
||||
* is useful when trying to optimize calls for statistics gathering.
|
||||
* @return array Array of cached data (and meta-data)
|
||||
* @param bool $limited
|
||||
* @return array
|
||||
* @throws ApcuException
|
||||
*
|
||||
*/
|
||||
@@ -26,13 +22,9 @@ function apcu_cache_info(bool $limited = false): array
|
||||
|
||||
|
||||
/**
|
||||
* apcu_cas updates an already existing integer value if the
|
||||
* old parameter matches the currently stored value
|
||||
* with the value of the new parameter.
|
||||
*
|
||||
* @param string $key The key of the value being updated.
|
||||
* @param int $old The old value (the value currently stored).
|
||||
* @param int $new The new value to update to.
|
||||
* @param string $key
|
||||
* @param int $old
|
||||
* @param int $new
|
||||
* @throws ApcuException
|
||||
*
|
||||
*/
|
||||
@@ -47,14 +39,11 @@ function apcu_cas(string $key, int $old, int $new): void
|
||||
|
||||
|
||||
/**
|
||||
* Decreases a stored integer value.
|
||||
*
|
||||
* @param string $key The key of the value being decreased.
|
||||
* @param int $step The step, or value to decrease.
|
||||
* @param bool|null $success Optionally pass the success or fail boolean value to
|
||||
* this referenced variable.
|
||||
* @param int $ttl TTL to use if the operation inserts a new value (rather than decrementing an existing one).
|
||||
* @return int Returns the current value of key's value on success
|
||||
* @param string $key
|
||||
* @param int $step
|
||||
* @param bool|null $success
|
||||
* @param int $ttl
|
||||
* @return int
|
||||
* @throws ApcuException
|
||||
*
|
||||
*/
|
||||
@@ -70,14 +59,11 @@ function apcu_dec(string $key, int $step = 1, ?bool &$success = null, int $ttl =
|
||||
|
||||
|
||||
/**
|
||||
* Increases a stored number.
|
||||
*
|
||||
* @param string $key The key of the value being increased.
|
||||
* @param int $step The step, or value to increase.
|
||||
* @param bool|null $success Optionally pass the success or fail boolean value to
|
||||
* this referenced variable.
|
||||
* @param int $ttl TTL to use if the operation inserts a new value (rather than incrementing an existing one).
|
||||
* @return int Returns the current value of key's value on success
|
||||
* @param string $key
|
||||
* @param int $step
|
||||
* @param bool|null $success
|
||||
* @param int $ttl
|
||||
* @return int
|
||||
* @throws ApcuException
|
||||
*
|
||||
*/
|
||||
@@ -93,11 +79,8 @@ function apcu_inc(string $key, int $step = 1, ?bool &$success = null, int $ttl =
|
||||
|
||||
|
||||
/**
|
||||
* Retrieves APCu Shared Memory Allocation information.
|
||||
*
|
||||
* @param bool $limited When set to FALSE (default) apcu_sma_info will
|
||||
* return a detailed information about each segment.
|
||||
* @return array Array of Shared Memory Allocation data; FALSE on failure.
|
||||
* @param bool $limited
|
||||
* @return array
|
||||
* @throws ApcuException
|
||||
*
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user