PHP code example of shaneen31 / russian-doll-caching
1. Go to this page and download the library: Download shaneen31/russian-doll-caching library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shaneen31 / russian-doll-caching example snippets
use RussianDollCaching\Cache;
use RussianDollCaching\DiskCache;
$cache = new Cache(new DiskCache());
public static function lastUpdated(){
return self::orderBy('updated_at', 'DESC')->select('id', 'updated_at')->first();
}
use RussianDollCaching\Cache;
use RussianDollCaching\DiskCache;
$cache = new Cache(new DiskCache());
use RussianDollCaching\Cache;
use RussianDollCaching\RedisCache;
$cache = new Cache(new RedisCache());
public static function lastUpdated(){
return self::orderBy('updated_at', 'DEST')->select('id', 'updated_at')->first();
}
use RussianDollCaching\Cache;
use RussianDollCaching\RedisCache;
$cache = new Cache(new RedisCache());
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.