Download the PHP package cicnavi/simple-file-cache-php without Composer
On this page you can find all versions of the php package cicnavi/simple-file-cache-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cicnavi/simple-file-cache-php
More information about cicnavi/simple-file-cache-php
Files in cicnavi/simple-file-cache-php
Download cicnavi/simple-file-cache-php
More information about cicnavi/simple-file-cache-php
Files in cicnavi/simple-file-cache-php
Vendor cicnavi
Package simple-file-cache-php
Short Description PSR-16 simple cache provider based on files.
License MIT
Package simple-file-cache-php
Short Description PSR-16 simple cache provider based on files.
License MIT
Please rate this library. Is it a good library?
Informations about the package simple-file-cache-php
cicnavi/simple-file-cache-php
PSR-16 simple cache provider based on files.
Installation
Usage
Use class Cicnavi\SimpleFileCache\SimpleFileCache to instantiate a cache instance. It can accept following arguments:
- $cacheName (optional/recommended, string) - cache name used to separate cache domains, 'simple-file-cache' being default
- $storagePath (optional, string) - path to writable folder which will be used to store cache files. If not provided, default system 'tmp' folder will be used.
- $fileSystemService (optional, Cicnavi\SimpleFileCache\Services\Interfaces\FileSystemServiceInterface) - FileSystemServiceInterface instance used to communicate with the filesystem (Cicnavi\SimpleFileCache\Services\FileSystemService being default)
Using different cache names is a recommended way of separating cache domains. If you don't specify the cache name, the default will be used. Keep in mind that the PSR-16 includes method clear(), which wipes out the entire cache for a particular domain (particular cache name).
Example
Tests
This will run phpunit, psalm and phpcs:
Licence
MIT
All versions of simple-file-cache-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-json Version *
ext-openssl Version *
ext-gmp Version *
psr/simple-cache Version ^1.0
ext-json Version *
ext-openssl Version *
ext-gmp Version *
psr/simple-cache Version ^1.0
The package cicnavi/simple-file-cache-php contains the following files
Loading the files please wait ....