DBM_Filter::compress - DBM_Filter 过滤器
use SDBM_File; # or DB_File, GDBM_File, NDBM_File, ODBM_File
use DBM_Filter ;
$db = tie %hash, ...
$db->Filter_Push('compress');
此 DBM 过滤器会在数据写入数据库之前对其进行压缩,并在读取时解压缩。
如果 Compress::Zlib 模块不可用,则会抛出致命错误。
DBM_Filter, perldbmfilter, Compress::Zlib
Paul Marquess [email protected]