mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Tweak doc blocks for Cache::add().
This commit is contained in:
parent
41d0e1df19
commit
d79855a77a
4 changed files with 4 additions and 3 deletions
|
@ -595,6 +595,7 @@ class Cache {
|
|||
* @param mixed $value Data to be cached - anything except a resource.
|
||||
* @param string $config Optional string configuration name to write to. Defaults to 'default'.
|
||||
* @return bool True if the data was successfully cached, false on failure.
|
||||
* Or if the key existed already.
|
||||
*/
|
||||
public static function add($key, $value, $config = 'default') {
|
||||
$settings = self::settings($config);
|
||||
|
|
|
@ -292,7 +292,7 @@ class MemcacheEngine extends CacheEngine {
|
|||
|
||||
/**
|
||||
* Write data for key into cache if it doesn't exist already. When using memcached as your cache engine
|
||||
* remember that the Memcached pecl extension does not support cache expiry times greater
|
||||
* remember that the Memcached PECL extension does not support cache expiry times greater
|
||||
* than 30 days in the future. Any duration greater than 30 days will be treated as never expiring.
|
||||
* If it already exists, it fails and returns false.
|
||||
*
|
||||
|
|
|
@ -207,7 +207,7 @@ class MemcachedEngine extends CacheEngine {
|
|||
|
||||
/**
|
||||
* Write data for key into cache. When using memcached as your cache engine
|
||||
* remember that the Memcached pecl extension does not support cache expiry times greater
|
||||
* remember that the Memcached PECL extension does not support cache expiry times greater
|
||||
* than 30 days in the future. Any duration greater than 30 days will be treated as never expiring.
|
||||
*
|
||||
* @param string $key Identifier for the data
|
||||
|
|
Loading…
Reference in a new issue