我正在使用Cache::FileCache
并且缓存存储在/tmp/FileCache/
里面/tmp/FileCache/
有3个目录:
__AUTO_PURGE__
Default
namespace
哪个可以安全删除以清除缓存?
我正在使用Cache::FileCache
并且缓存存储在/tmp/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.