Open Triple-Z opened 2 years ago
@Triple-Z the value stored in shdict is a double https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_shdict.c#L1795, it should be sufficient for most use cases.
@fffonion Thank you for your reply.
I still have two questions:
10^14
. As the counter value is integer, is the maximum value for the counter is 10^14 - 1
?If the counter is over the 10^14
, should I reset it to zero?
Is possible that the integer counter would be overflowed to be negative?