2

我正在使用Cache::FileCache并且缓存存储在/tmp/FileCache/

里面/tmp/FileCache/有3个目录:

  • __AUTO_PURGE__
  • Default
  • namespace

哪个可以安全删除以清除缓存?

4

1 回答 1

2

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.
于 2013-02-20T23:31:39.097 回答