Skip to content

Commit

Permalink
Tweak doc blocks for Cache::add().
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 9, 2015
1 parent 41d0e1d commit d79855a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/Cake/Cache/Cache.php
Expand Up @@ -595,6 +595,7 @@ public static function remember($key, $callable, $config = 'default') {
* @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);
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Cache/Engine/MemcacheEngine.php
Expand Up @@ -292,7 +292,7 @@ public function clearGroup($group) {

/**
* 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.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Cache/Engine/MemcachedEngine.php
Expand Up @@ -207,7 +207,7 @@ protected function _parseServerString($server) {

/**
* 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
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Cache/Engine/RedisEngine.php
Expand Up @@ -229,7 +229,7 @@ public function __destruct() {
}

/**
* Write data for key into cache if it doesn't exist already.
* Write data for key into cache if it doesn't exist already.
* If it already exists, it fails and returns false.
*
* @param string $key Identifier for the data.
Expand Down

0 comments on commit d79855a

Please sign in to comment.