refactoring cache and session classes.

This commit is contained in:
Taylor Otwell
2011-10-12 21:55:05 -05:00
parent 9f7ed576c5
commit 4342f82aa9
7 changed files with 66 additions and 31 deletions

View File

@@ -7,14 +7,14 @@ class Memcached extends Driver {
*
* @var Memcache
*/
private $memcache;
protected $memcache;
/**
* The cache key from the cache configuration file.
*
* @var string
*/
private $key;
protected $key;
/**
* Create a new Memcached cache driver instance.
@@ -53,6 +53,11 @@ class Memcached extends Driver {
/**
* Write an item to the cache for a given number of minutes.
*
* <code>
* // Put an item in the cache for 15 minutes
* Cache::put('name', 'Taylor', 15);
* </code>
*
* @param string $key
* @param mixed $value
* @param int $minutes