Download the PHP package php-library/simple-cache without Composer
On this page you can find all versions of the php package php-library/simple-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download php-library/simple-cache
More information about php-library/simple-cache
Files in php-library/simple-cache
Download php-library/simple-cache
More information about php-library/simple-cache
Files in php-library/simple-cache
Vendor php-library
Package simple-cache
Short Description PHP Simple Cache Library
License MIT
Homepage https://github.com/php-library/simple-cache.git
Package simple-cache
Short Description PHP Simple Cache Library
License MIT
Homepage https://github.com/php-library/simple-cache.git
Please rate this library. Is it a good library?
Informations about the package simple-cache
PHP library to deal with fast and simple cache solutions with multiple adapter options.
Installation
Examples
Detailed examples can be found in "examples/" directory
File Cache Example
In order to create a SimpleCache instance, we need Adapter instance.
Make sure your storagePath exists and accessible.
Creating SimpleCache instance
Saving a new record
Retrieve a record from SimpleCache
Above code will print "test value".
Redis Cache Example
Redis Adapter expects 4 parameter which are:
- host
- port
- databaseId
- timeout
Creating redis adapter
Creating SimpleCache for Redis Cache manipulation
Saving a new record
Retrieve a record from SimpleCache
Memcache Example
In order to create a Memcahce SimpleCache instance we need to pass Memcache Instance to Adapter.
Creating SimpleCache for Memcache manipulation
Saving a new record
Retrieve a record from SimpleCache
All versions of simple-cache with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package php-library/simple-cache contains the following files
Loading the files please wait ....