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
Get the default cache driver name.
Dynamically call the default driver instance.
Create an instance of the APC cache driver.
Create an instance of the array cache driver.
Create an instance of the file cache driver.
Create an instance of the Memcached cache driver.
Create an instance of the Null cache driver.
Create an instance of the WinCache cache driver.
Create an instance of the XCache cache driver.
Create an instance of the Redis cache driver.
Create an instance of the database cache driver.
Get the database connection for the database driver.
Get the cache "prefix" value.
Set the cache "prefix" value.
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.