CacheManager
class CacheManager extends Manager (View source)
Properties
protected Application | $app | The application instance. | from Manager |
protected array | $customCreators | The registered custom driver creators. | from Manager |
protected array | $drivers | The array of created "drivers". | from Manager |
Methods
void | __construct(Application $app) Create a new manager instance. | from Manager |
string | getDefaultDriver() Get the default cache driver name. | |
mixed | driver(string $driver = null) Get a driver instance. | from Manager |
mixed | createDriver(string $driver) Create a new driver instance. | from Manager |
mixed | callCustomCreator(string $driver) Call a custom driver creator. | from Manager |
$this | extend(string $driver, Closure $callback) Register a custom driver creator Closure. | from Manager |
array | getDrivers() Get all of the created "drivers". | from Manager |
mixed | __call(string $method, array $parameters) Dynamically call the default driver instance. | from Manager |
ApcStore | createApcDriver() Create an instance of the APC cache driver. | |
ArrayStore | createArrayDriver() Create an instance of the array cache driver. | |
FileStore | createFileDriver() Create an instance of the file cache driver. | |
MemcachedStore | createMemcachedDriver() Create an instance of the Memcached cache driver. | |
NullStore | createNullDriver() Create an instance of the Null cache driver. | |
WinCacheStore | createWincacheDriver() Create an instance of the WinCache cache driver. | |
WinCacheStore | createXcacheDriver() Create an instance of the XCache cache driver. | |
RedisStore | createRedisDriver() Create an instance of the Redis cache driver. | |
DatabaseStore | createDatabaseDriver() Create an instance of the database cache driver. | |
Connection | getDatabaseConnection() Get the database connection for the database driver. | |
string | getPrefix() Get the cache "prefix" value. | |
void | setPrefix(string $name) Set the cache "prefix" value. | |
Repository | repository(StoreInterface $store) Create a new cache repository with the given implementation. | |
void | setDefaultDriver(string $name) Set the default cache driver name. |
Details
void __construct(Application $app)
Create a new manager instance.
string getDefaultDriver()
Get the default cache driver name.
mixed driver(string $driver = null)
Get a driver instance.
protected mixed createDriver(string $driver)
Create a new driver instance.
protected mixed callCustomCreator(string $driver)
Call a custom driver creator.
$this extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
array getDrivers()
Get all of the created "drivers".
mixed __call(string $method, array $parameters)
Dynamically call the default driver instance.
protected ApcStore createApcDriver()
Create an instance of the APC cache driver.
protected ArrayStore createArrayDriver()
Create an instance of the array cache driver.
protected FileStore createFileDriver()
Create an instance of the file cache driver.
protected MemcachedStore createMemcachedDriver()
Create an instance of the Memcached cache driver.
protected NullStore createNullDriver()
Create an instance of the Null cache driver.
protected WinCacheStore createWincacheDriver()
Create an instance of the WinCache cache driver.
protected WinCacheStore createXcacheDriver()
Create an instance of the XCache cache driver.
protected RedisStore createRedisDriver()
Create an instance of the Redis cache driver.
protected DatabaseStore createDatabaseDriver()
Create an instance of the database cache driver.
protected Connection getDatabaseConnection()
Get the database connection for the database driver.
string getPrefix()
Get the cache "prefix" value.
void setPrefix(string $name)
Set the cache "prefix" value.
protected Repository repository(StoreInterface $store)
Create a new cache repository with the given implementation.
void setDefaultDriver(string $name)
Set the default cache driver name.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Cache/CacheManager.html