lua-resty-memcached set数据时,数据太大的话有自动压缩功能吗?
--lua-resty-memcached set数据时,数据太大的话有自动压缩功能吗?
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html
请问nginx+lua 能不能读取zip编码文件或者gzip,我存到memcach里的数据是zip压缩后的,读取出来必须解压缩 要不乱码
发件人: open...@googlegroups.com [mailto:open...@googlegroups.com]
代表 smallfish
发送时间: 2014年6月3日 18:19
收件人: open...@googlegroups.com
主题: Re: [openresty] lua-resty-memcached set时有自动压缩功能吗
可以详细说下吗
local ok, err = memc:set(key, result,600,"MEMCACHE_COMPRESSED")
这样?
发件人: open...@googlegroups.com [mailto:open...@googlegroups.com]
代表 Ken Lam
发送时间: 2014年6月3日
19:34
收件人: open...@googlegroups.com
主题: Re: [openresty] lua-resty-memcached set时有自动压缩功能吗
字符串类型数据设置flag后可以互通
可以详细说下吗
local ok, err = memc:set(key, result,600,"MEMCACHE_COMPRESSED")
这样?
发件人: open...@googlegroups.com [mailto:open...@googlegroups.com] 代 表 Ken Lam
发 送时间: 2014年6月3日 19:34
收件人: open...@googlegroups.com
主题: Re: [openresty] lua-resty-memcached set时 有自动压缩功能吗
字符串类型数据设置flag后可 以互通
于 14-6-3 下午6:19, smallfish 写道:
不会自动压缩,可以试试设置flag值。
On Tue, Jun 3, 2014 at 5:24 PM, 郭阳3 <guoy...@letv.com> wrote:
lua-resty-memcached set数据时,数据太 大的话有自动 压缩功能吗?
--
--
邮 件来自列表“openresty”,专用于技术讨论!
订 阅: 请发空白邮件到 openresty...@googlegroups.com
发 言: 请发邮件到 open...@googlegroups.com
退 订: 请发邮件至 openresty+...@googlegroups.com
归 档: http://groups.google.com/group/openresty
官 网: http://openresty.org/
仓 库: https://github.com/agentzh/ngx_openresty