info("test redis"); Redis::set("test-redis",'this is a test'); $this->info("redis get:".Redis::get("test-redis")); Redis::hSet("test-redis-hash",'hash','this is a test hash'); $this->info("redis hash get:".Redis::hGet("test-redis-hash",'hash')); $this->info("test cache"); Cache::put('cache-key','cache value',10); $this->info('catche test: ',Cache::get('cache-key')); cache(["cache-key-2"=>'cache value 2']); $this->info('cache() test',cache("cache-key-2")); $value = Cache::get('cache-key-3',function(){ return 'cache-value-3'; }); if(Cache::has('cache-key-3')){ $this->info("cache-key-3 exist"); }else{ $this->info("cache-key-3 no"); } return 0; } }