Skip to content

change param expire to int64 #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/resty/core/shdict.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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);
]]
Expand Down