hi
I have a question about the method lua_share_dict:set(key,value,expiretime).
first,I alloc 16kB space
lua_share_dict test 16k
then I call the method test:set(key,value,60) every 1 second
and the 16k space just store 60 key/value
so ,when I set 61th k/v(the space is exceeded by then former inserted 60 k/v), it will print log:ngx_slab_alloc() failed: no memory in lua_shared_dict zone
but, if I set the expired time to 58
There is no log like ngx_slab_alloc() failed: no memory in lua_shared_dict zone
I think this is because when I set 61th k/v,some former k/v has expired,which freed the memory.
so my question is the method lua_share_dict:set(key,value,expiretime)
free the memory when it is expired automaticly?