Skip to content
Permalink
Browse files

Tweak doc blocks for Cache::add().

  • Loading branch information...
markstory committed Aug 9, 2015
1 parent 41d0e1d commit d79855a77a35f4abbc31c673ce2b947793652812
@@ -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);
@@ -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.
*
@@ -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
@@ -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.

0 comments on commit d79855a

Please sign in to comment.
You can’t perform that action at this time.