36 return $this->
get(
$name);
46 abstract protected function create($namespace);
56 public function get($namespace) {
57 if (!isset($this->caches[$namespace])) {
58 $this->caches[$namespace] = $this->
create($namespace);
61 return $this->caches[$namespace];
69 foreach ($this->caches as $cache) {
79 foreach ($this->caches as $cache) {
89 foreach ($this->caches as $cache) {
if(!$user||!$user->canDelete()) $name
disable()
Disable all persistent caches.
enable()
Enable all persistent caches.
create($namespace)
Create a new cache under a namespace.
trait Cacheable
Utility trait for injecting cache.
clear()
Clear all persistent caches.
__construct(Config $config)
Constructor.
A collection of composite caches.