A PSR-6 cache implementation which supports tags, metadata, hit counters, and more.
For more information, see PSR-6 specifications.
All exceptions thrown by this library extend Bayfront\Cache\Exceptions\CacheException,
so you can choose to catch exceptions as narrowly or broadly as you like.
All adapters implement Bayfront\Cache\Interfaces\CacheItemPoolInterface.
As such, the adapter serves as the cache pool, which represents a collection of items.
For more information, see CacheItemPoolInterface.
Available adapters include:
All adapters return items as a Bayfront\Cache\Interfaces\CacheItemInterface.
For more information, see CacheItemInterface.
The Bayfront\Cache\Utilities\CacheUtilities class contains some static constants and methods used by this library.
COMPRESSION_METHOD_BZIP2: Compression using bzip2 (PHP'sbzcompressfunction)COMPRESSION_METHOD_GZIP: Compression using gzip (PHP'sgzencodefunction)COMPRESSION_METHOD_ZLIB: Compression using theZLIBdata format (PHP'sgzcompressfunction)COMPRESSION_METHOD_NONE: No compressionSERIALIZATION_METHOD_IGBINARY: Serialization using compact binary format (PHP'sigbinary_serializefunction)SERIALIZATION_METHOD_PHP: Serialization using standard PHP serialization (PHP'sserializefunction)SERIALIZATION_METHOD_NONE: No serialization
Is method a valid compression method?
Parameters:
$method(string)
Returns:
- (bool)
Is method a valid serialization method?
Parameters:
$method(string)
Returns:
- (bool)