Hi..
I was wondering if it's possible to defining ngx.shared dictionary which contains array or object value?
e.g:
#nginx.conf
http {
lua_shared_dict info_sharing 32m;
server {
location / {
access_by_lua_block {
ngx.shared.info_sharing:set("MyKey" , {name:"MyName",age:25})
}
}
}
}
also to resolving my problem it can be array by 2 indexes (like ["MyName",25])
now I have solved it by setting a string as shared value and splitting it like: "MyName#25"
but it would be better if I could set array or object to the values of my shared variable!
thanks a lot...
Best,
Hadi