Can we use redis for the memory cache in the proxy cache plugin? #12676
-
Per https://apisix.apache.org/docs/apisix/plugins/proxy-cache/ it says we can use disk or memory. Is there a way to use Redis? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, the proxy-cache plugin only supports disk and memory caching strategies. The memory cache uses an in-memory shared dictionary (lua_shared_dict) in NGINX/OpenResty, not Redis, and the plugin schema restricts the cache_strategy to "disk" or "memory" only. There is no built-in way to use Redis as a cache backend for proxy-cache. To use Redis, you would need to develop a custom plugin or integrate Redis caching externally, as this is not natively supported or documented in APISIX today (docs, code). To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
No, the proxy-cache plugin only supports disk and memory caching strategies. The memory cache uses an in-memory shared dictionary (lua_shared_dict) in NGINX/OpenResty, not Redis, and the plugin schema restricts the cache_strategy to "disk" or "memory" only. There is no built-in way to use Redis as a cache backend for proxy-cache. To use Redis, you would need to develop a custom plugin or integrate Redis caching externally, as this is not natively supported or documented in APISIX today (docs, code).
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
