dev-master
9999999-dev https://github.com/pavel-u/InCacheCache wrapper.
BSD
The Requires
The Development Requires
cache php library
Wallogit.com
2017 © Pedro Peláez
Cache wrapper.
InCache is a simple tool which will going to represent cache as a new level of abstraction via DSL., (*1)
The fastest way to install InCache in your project is using Composer., (*2)
Install Composer:, (*3)
curl -s https://getcomposer.org/installer | php
Add InCache as a dependency to your composer.json file:, (*4)
{
"require": {
"pavel-u/in-cache": "dev-master"
}
}
Currently project is in the development state. So, "dev-master" version should be used., (*5)
Install InCache:, (*6)
php composer.phar install
Initialize InCache interceptor:
php
$interceptor = new \InCache\Interceptor;
Set Root path:
php
$interceptor->setRootPath(__DIR__)
Set path to the config file:
php
$interceptor->setConfigPath(realpath(__DIR__ . DIRECTORY_SEPARATOR . 'etc/cache.xml'))
Start to intercept methods calls:
php
$interceptor->listen()
Generate proxy classess. First parameter is used to process force code generation:
php
$interceptor->generate(true);, (*7)
Here is an example of config file
```xml
```, (*9)
Cache Driver MUST implements Stash\Interfaces\DriverInterface interface. Cache Pool MUST implements Stash\Interfaces\PoolInterface, (*10)
Also, you could always check XSD file which will provide you more datails about DSL., (*11)
Cache wrapper.
BSD
cache php library