Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
ngx.shared.DICT为什么只有incr操作没有decrease操作呀?
coderesty
如标题,ngx.shared.DICT现在为什么只能递增不能递减呀
另外为什么不可以设置如果incr不存在的key的话,可以有默认值0,这样的?
这样对统计并发度上很有帮助呀?
doujiang24
Hello,
在 2015年10月19日 下午8:20,人cc
<
code...@gmail.com
>
写道:
如标题,ngx.shared.DICT现在为什么只能递增不能递减呀
你可以 incr 一个负数
另外为什么不可以设置如果incr不存在的key的话,可以有默认值0,这样的?
这个可以有,比如这个 PR,还在等春哥的 review
https://github.com/openresty/lua-nginx-module/pull/579
这样对统计并发度上很有帮助呀?
--