<?php
$result = require APP_PATH.'/plugin/RedisCache/RedisCache.class.php';
$obj = \RedisCache::getInstance();
//写入持久化的数据
$obj ->setCache('testCache','这是测试缓存没有过期时间');
//写入60秒过期的数据
$obj ->setCache('testCacheOutTime','这是测试缓存过期时间60秒', 60);
//删除数据
$obj->delCache('testCacheOutTime');
//检测数据是否存在
$obj->exists('key'));
//获取数据
$obj->getCache('key');代码请去:https://www.php63.cc/index.php/post/44.html 别忘了赞一个哦 