Memcache::setCompressThreshold — Enable automatic compression of large valuesbool Memcache::setCompressThreshold ( int $threshold [, float $min_savings ] )举个例子,下面这段会自动启用压缩策略,当数据大于2k时,以0.2的压缩比进行zlib。
欢迎光临 创星网络[分享知识 传递快乐] (http://bbs.cxweb.com.cn/) | Powered by Discuz! X3 |