1
我使用Cache::FileCache
并存储在/tmp/FileCache/
如何使用Cache :: FileCache清除所有缓存的对象?
在/tmp/FileCache/
缓存有3个迪尔斯:
__AUTO_PURGE__
Default
namespace
哪一个是安全的删除清除缓存?
我使用Cache::FileCache
并存储在/tmp/FileCache/
如何使用Cache :: FileCache清除所有缓存的对象?
在/tmp/FileCache/
缓存有3个迪尔斯:
__AUTO_PURGE__
Default
namespace
哪一个是安全的删除清除缓存?
Cache::FileCache
实现了Cache::Cache
接口。
而是直接与文件系统搞乱的,你可能想要写一个简短的脚本,如
use strict; use warnings;
use Cache::FileCache;
my $cache = Cache::FileCache->new(
{namespace => 'whatever namespace you are using'}
);
$cache->clear; # or Clear to remove all objects from all caches of this type.
完美..得到它的工作:)谢谢!有没有类似于Cache :: FileCache的PHP脚本? – 2013-02-20 23:33:38
谢谢。见http://stackoverflow.com/questions/7869420/file-cache-library-for-php和那里的链接问题。 – 2013-02-20 23:44:49