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
Allow add custom shared dict #1367
Conversation
If you need to add one shared dict, then you will using this shared dict in Lua code, right? |
Yes, I need add some custom plugin. I used the mlcache library, which needs to add some shared caches. |
Got it. |
conf/config.yaml
Outdated
@@ -111,6 +111,8 @@ nginx_config: # config for render the template to genarate n | |||
real_ip_from: # http://nginx.org/en/docs/http/ngx_http_realip_module.html#set_real_ip_from | |||
- 127.0.0.1 | |||
- 'unix:' | |||
lua_shared_dicts: | |||
ipc_shared_dict: 100m # custom shared cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be commented by default.
NOTE: Please read the Contributing.md guidelines before submitting your patch:
https://github.com/apache/incubator-apisix/blob/master/Contributing.md#how-to-add-a-new-feature-or-change-an-existing-one
Summary
Allows you to add custom shared dict through configuration
Full changelog