ngx.shared.DICT serialize / deserialize

Joel Parker joel.parker.gm at gmail.com
Thu Nov 9 20:19:14 UTC 2017


I am trying to load a table from disk (deserialize) into memory and then
add, change, remove the values in the table then write it periodically back
to disk (serialize). I looked at the documentation for the ngx.shared.DICT (
https://github.com/openresty/lua-nginx-module#ngxshareddict) and it seems
like it would fit my needs but I do not see anywhere in the documentation
how to load the table initially from disk and modify then write back to
disk. Could someone provide a basic example of how I might accomplish this ?

Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20171109/27acd1ab/attachment.html>


More information about the nginx mailing list