Download the PHP package chillerlan/php-cache without Composer
On this page you can find all versions of the php package chillerlan/php-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chillerlan/php-cache
More information about chillerlan/php-cache
Files in chillerlan/php-cache
Package php-cache
Short Description A psr/simple-cache implementation. PHP 8.1+
License MIT
Homepage https://github.com/chillerlan/php-cache
Informations about the package php-cache
chillerlan/php-cache
A psr/simple-cache implementation for PHP 8.1+.
Features:
- PSR-16 simple-cache-implementation
- persistent: File based, Memcached, Redis
- non-persistent: Session, Memory
Requirements
Documentation
Installation using composer
You can simply clone the repo and run composer install
in the root directory.
In case you want to include it elsewhere, just add the following to your composer.json:
(note: replace dev-main
with a version constraint,
e.g. ^4.1
- see releases for valid versions)
Installation via terminal: composer require chillerlan/php-cache
Profit!
Usage
Just invoke a cache instance with the desired CacheInterface
like so:
Methods
See: Psr\SimpleCache\CacheInterface
Disclaimer!
I don't take responsibility for molten memory modules, bloated hard disks, self-induced DoS, broken screens etc. Use at your own risk! :see_no_evil:
All versions of php-cache with dependencies
psr/log Version ^1.1 || ^2.0 || ^3.0
psr/simple-cache Version ^2.0 || ^3.0
chillerlan/php-settings-container Version ^3.1