1<?php
2
3require_once '../../MPLT.php';
4$timer = new MPLT();
5
6/**
7 * using composer autoloader PSR-0
8 */
9require_once '../../vendor/autoload.php';
10
11$cache = new DALMP\Cache\Redis('127.0.0.1', 6379);
12
13$cache->set('mykey', 'xpto', 300);
14var_dump($cache->get('mykey'));
15
16$cache->X()->HSET('myhash', 'field1', 'hello');
17var_dump($cache->X()->HGET('myhash', 'field1'));
18var_dump($cache->X()->HGETALL('myhash'));
19
20#------------------------------------------------------------------------------
21echo PHP_EOL, str_repeat('-', 80),PHP_EOL,'Time: ',$timer->getPageLoadTime(),' - Memory: ',$timer->getMemoryUsage(1),PHP_EOL,str_repeat('-', 80),PHP_EOL;
22