系统内置了很多类型的缓存,除了 File,其它均需要结合相关产品;
这里主要演示 File 文本缓存,“其它的需要学习相关产品”;
配置文件 cache.php 进行缓存配置,默认生成在 runtime/cache 目录;
<?php//助手函数的使用:cache();cache('user', 'Mr.Lee', 3600);//设置缓存echo cache('user'
系统内置了很多类型的缓存,除了 File,其它均需要结合相关产品;
这里主要演示 File 文本缓存,“其它的需要学习相关产品”;
配置文件 cache.php 进行缓存配置,默认生成在 runtime/cache 目录;
<?php//助手函数的使用:cache();cache('user', 'Mr.Lee', 3600);//设置缓存echo cache('user'