You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
423 B
21 lines
423 B
<?php
|
|
use Fastknife\Domain\Logic\Cache;
|
|
|
|
include '../src/Domain/Logic/Cache.php';
|
|
include '../src/Utils/CacheUtils.php';
|
|
|
|
$config = include '../src/config.php';
|
|
|
|
$cacheEntity = new Cache($config['cache']);
|
|
|
|
var_dump($cacheEntity->get('haha'));
|
|
|
|
$cacheEntity->set('haha', 1, 60);
|
|
|
|
var_dump($cacheEntity->has('haha'));
|
|
|
|
var_dump($cacheEntity->get('haha'));
|
|
|
|
$cacheEntity->delete('haha');
|
|
|
|
var_dump($cacheEntity->get('haha')); |