more dependency injection!
This commit is contained in:
10
laravel/cache/apc.php
vendored
10
laravel/cache/apc.php
vendored
@@ -75,11 +75,6 @@ class APC extends Driver {
|
||||
/**
|
||||
* Determine if an item exists in the cache.
|
||||
*
|
||||
* <code>
|
||||
* // Determine if the "name" item exists in the cache
|
||||
* $exists = Cache::driver()->has('name');
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @return bool
|
||||
*/
|
||||
@@ -102,11 +97,6 @@ class APC extends Driver {
|
||||
/**
|
||||
* Write an item to the cache for a given number of minutes.
|
||||
*
|
||||
* <code>
|
||||
* // Write the "name" item to the cache for 30 minutes
|
||||
* Cache::driver()->put('name', 'Fred', 30);
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @param int $minutes
|
||||
|
||||
23
laravel/cache/driver.php
vendored
23
laravel/cache/driver.php
vendored
@@ -5,11 +5,6 @@ abstract class Driver {
|
||||
/**
|
||||
* Determine if an item exists in the cache.
|
||||
*
|
||||
* <code>
|
||||
* // Determine if the "name" item exists in the cache
|
||||
* $exists = Cache::driver()->has('name');
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @return bool
|
||||
*/
|
||||
@@ -21,14 +16,6 @@ abstract class Driver {
|
||||
* A default value may also be specified, and will be returned in the requested
|
||||
* item does not exist in the cache.
|
||||
*
|
||||
* <code>
|
||||
* // Get the "name" item from the cache
|
||||
* $name = Cache::driver()->get('name');
|
||||
*
|
||||
* // Get the "name" item from the cache or return "Fred"
|
||||
* $name = Cache::driver()->get('name', 'Fred');
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $default
|
||||
* @param string $driver
|
||||
@@ -52,11 +39,6 @@ abstract class Driver {
|
||||
/**
|
||||
* Write an item to the cache for a given number of minutes.
|
||||
*
|
||||
* <code>
|
||||
* // Write the "name" item to the cache for 30 minutes
|
||||
* Cache::driver()->put('name', 'Fred', 30);
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @param int $minutes
|
||||
@@ -68,11 +50,6 @@ abstract class Driver {
|
||||
* Get an item from the cache. If the item doesn't exist in the cache, store
|
||||
* the default value in the cache and return it.
|
||||
*
|
||||
* <code>
|
||||
* // Get the "name" item from the cache or store "Fred" for 30 minutes
|
||||
* $name = Cache::driver()->remember('name', 'Fred', 30);
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $default
|
||||
* @param int $minutes
|
||||
|
||||
13
laravel/cache/manager.php
vendored
13
laravel/cache/manager.php
vendored
@@ -43,14 +43,6 @@ class Manager {
|
||||
* If no driver name is specified, the default cache driver will be returned
|
||||
* as defined in the cache configuration file.
|
||||
*
|
||||
* <code>
|
||||
* // Get the default cache driver
|
||||
* $driver = $application->cache->driver();
|
||||
*
|
||||
* // Get the APC cache driver
|
||||
* $apc = $application->cache->driver('apc');
|
||||
* </code>
|
||||
*
|
||||
* @param string $driver
|
||||
* @return Cache\Driver
|
||||
*/
|
||||
@@ -76,11 +68,6 @@ class Manager {
|
||||
*
|
||||
* Passing method calls to the driver instance provides a convenient API for the developer
|
||||
* when always using the default cache driver.
|
||||
*
|
||||
* <code>
|
||||
* // Get an item from the default cache driver
|
||||
* $name = $application->cache->get('name');
|
||||
* </code>
|
||||
*/
|
||||
public function __call($method, $parameters)
|
||||
{
|
||||
|
||||
10
laravel/cache/memcached.php
vendored
10
laravel/cache/memcached.php
vendored
@@ -34,11 +34,6 @@ class Memcached extends Driver {
|
||||
/**
|
||||
* Determine if an item exists in the cache.
|
||||
*
|
||||
* <code>
|
||||
* // Determine if the "name" item exists in the cache
|
||||
* $exists = Cache::driver()->has('name');
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @return bool
|
||||
*/
|
||||
@@ -61,11 +56,6 @@ class Memcached extends Driver {
|
||||
/**
|
||||
* Write an item to the cache for a given number of minutes.
|
||||
*
|
||||
* <code>
|
||||
* // Write the "name" item to the cache for 30 minutes
|
||||
* Cache::driver()->put('name', 'Fred', 30);
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @param int $minutes
|
||||
|
||||
Reference in New Issue
Block a user