Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Minor updates

  • Loading branch information...
commit fccfd743645fb826dd4d5ff4457ed7e0b8504395 1 parent e392332
Kevin Boyd authored
2  Cache.php
@@ -73,7 +73,7 @@ public function setClient( CacheClientInterface $client )
* Retrieve a value from the cache using the provided key
- * @param string $key The unique key identifying the data to be retrieved.
+ * @param string|array $key The unique key or array of keys identifying the data to be retrieved.
* @access public
* @return mixed The requested data, or false if there is an error
1  Client/FilecacheClient.php
@@ -44,6 +44,7 @@ public function get( $key )
return false;
+ //@todo Implement multi-get
if ( file_exists( $this->buildFilename( $key ) )
$file = file_get_contents( $this->buildFilename( $key ) );
4 Client/MemcacheClient.php
@@ -122,8 +122,8 @@ public function probeServer( $ip, $port )
* Retrieve a value from memcache
- *
- * @param string $key Unique identifier
+ *
+ * @param string|array $key Unique identifier or array of identifiers
* @access public
* @return mixed Requested value, or false if an error occurs
2 
@@ -3,6 +3,8 @@ BerylliumCacheBundle for Symfony2
It's memcache. You've seen it before. Now it's injectable to the DIC, and you don't have to write all this junk yourself. And it should also work with Amazon ElasticCache, as well as the MySQL Memcache Interface (new in MySQL 5.6).
+Another advantage over just using a raw memcache object is that BCB probes servers before adding them to the pool - if a server is down, your site won't be gravely impacted by the Memcache class waiting and waiting and waiting for a response.
The groundwork is also laid out for building alternate cache interfaces quickly - such as APC caching, or your own home-rolled filesystem cache.
## Configuration
Please sign in to comment.
Something went wrong with that request. Please try again.