Application Caching¶
Caching Methods¶
$app->getCaching()¶
Accessing cache service.
/** @var \Zend\Cache\Storage\StorageInterface $cache */
$cache = $app->getCache();
Cache Config¶
ConfigCacheEnabled¶
Toggling application config caching.
use WebinoConfigLib\Feature\ConfigCacheEnabled;
Webino::config([
// enable
new ConfigCacheEnabled,
// disable
new ConfigCacheEnabled(false),
]);
See also
FilesystemCache¶
Configuring filesystem cache.
use WebinoAppLib\Feature\FilesystemCache;
Webino::config([
new FilesystemCache,
]);
MemoryCache¶
Configuring in memory cache.
use WebinoAppLib\Feature\MemoryCache;
Webino::config([
new MemoryCache,
]);