thefunpower / cc_cache
cc_cache
v1.1.0
2023-09-21 06:00 UTC
Requires
- aplus/cache: ^3.1
README
在composer.json中添加
"thefunpower/cc_cache": "dev-main"
配置
global $cache_drive,$cache_redis_config,$cache_file_dir,$cache_pre_key;
$cache_drive = 'redis';
$cache_redis_config = [
'host'=>'127.0.0.1',
'port'=>6379,
'password'=>'',
'database'=>'',
];
使用
//设置
cc_cache($key,$value,$ttl);
//获取
cc_cache($key);
开源协议
The MIT License (MIT)