LaminasCacheDriver
class LaminasCacheDriver extends AbstractAdapter implements StorageInterface, FlushableInterface (View source)
Class LaminasCacheDriver Adapter class to hook Laminas's cache into Concrete's cache.
By passing this class into various Laminas classes, it tells Laminas use it for storing and retrieving cache values. Values are passed through here and onto Concrete's caching layer which uses the Stash library. Allows us to use many of the helpful Laminas classes without having to maintain a separate cache configuration.
Currently used by:
- Concrete\Core\Feed\FeedService
- Concrete\Core\Localization\Localization
\@package Concrete\Core\Cache\Adapter
Properties
private string | $cacheName | ||
protected int | $cacheLifetime |
Methods
No description
Internal method to get an item.
Internal method to store an item.
Internal method to remove an item.
Flush the whole storage.
Details
__construct(string $cacheName = 'cache', int $cacheLifetime = null)
No description
protected mixed
internalGetItem(string $normalizedKey, bool $success = null, mixed $casToken = null)
Internal method to get an item.
protected bool
internalSetItem(string $normalizedKey, mixed $value)
Internal method to store an item.
protected bool
internalRemoveItem(string $normalizedKey)
Internal method to remove an item.
bool
flush()
Flush the whole storage.