Download the PHP package alejoasotelo/joomla-cache-compat without Composer
On this page you can find all versions of the php package alejoasotelo/joomla-cache-compat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alejoasotelo/joomla-cache-compat
More information about alejoasotelo/joomla-cache-compat
Files in alejoasotelo/joomla-cache-compat
Package joomla-cache-compat
Short Description Joomla Cache Package - PSR Compatbility
License GPL-2.0-or-later
Homepage https://github.com/joomla-framework/cache
Informations about the package joomla-cache-compat
The Cache Package 
This cache package is based on a version of the now accepted PSR-6 as it was in 2013.
Deprecated
The alejoasotelo/joomla-cache-compat
package has been deprecated with no further updates planned.
Options and General Usage
Following option as available across a cache storage types:
- ttl - Time to live.
Cache Storage Types
The following storage types are supported.
Apc
File
The File cache allows the following additional options:
- file.path - the path where the cache files are to be stored.
- file.locking
Memcached
None
Runtime
Wincache
XCache
Test Mocking
The Cache
package provide a PHPUnit helper to mock a Cache\Cache
object or an Cache\Item
object. You can include your own optional overrides in the test class for the following methods:
Cache\Cache::get
: Add a method calledmockCacheGet
to your test class. If omitted, the helper will return a default mock for theCache\Item
class.Cache\Item::getValue
: Add a method calledmockCacheItemGetValue
to your test class. If omitted, the mockCache\Item
will return"value"
when this method is called.Cache\Item::isHit
: Add a method calledmockCacheItemIsHit
to your test class. If omitted, the mockCache\Item
will returnfalse
when this method is called.
Installation via Composer
Add "alejoasotelo/joomla-cache-compat": "~1.0"
to the require block in your composer.json and then run composer install
.
Alternatively, you can simply run the following from the command line: