From 16336fc579d0011a4d81331ee2d619d3612bd9c2 Mon Sep 17 00:00:00 2001 From: liupeng Date: Fri, 16 Mar 2018 18:10:45 +0800 Subject: [PATCH] change param expire to int64 --- lib/resty/core/shdict.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/resty/core/shdict.lua b/lib/resty/core/shdict.lua index 623071562..77a3c650b 100644 --- a/lib/resty/core/shdict.lua +++ b/lib/resty/core/shdict.lua @@ -34,16 +34,16 @@ ffi.cdef[[ int ngx_http_lua_ffi_shdict_store(void *zone, int op, const unsigned char *key, size_t key_len, int value_type, const unsigned char *str_value_buf, size_t str_value_len, - double num_value, int exptime, int user_flags, char **errmsg, + double num_value, uint64_t exptime, int user_flags, char **errmsg, int *forcible); int ngx_http_lua_ffi_shdict_flush_all(void *zone); - int ngx_http_lua_ffi_shdict_get_ttl(void *zone, + uint64_t ngx_http_lua_ffi_shdict_get_ttl(void *zone, const unsigned char *key, size_t key_len); int ngx_http_lua_ffi_shdict_set_expire(void *zone, - const unsigned char *key, size_t key_len, int exptime); + const unsigned char *key, size_t key_len, uint64_t exptime); size_t ngx_http_lua_ffi_shdict_capacity(void *zone); ]]