2013-02-20 77 views

回答

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. 
+0

完美..得到它的工作:)谢谢!有没有类似于Cache :: FileCache的PHP脚本? – 2013-02-20 23:33:38

+1

谢谢。见http://stackoverflow.com/questions/7869420/file-cache-library-for-php和那里的链接问题。 – 2013-02-20 23:44:49