powermanlc opened a new issue #1768:
URL: https://github.com/apache/incubator-apisix/issues/1768


   ### Issue description
   
   1.in plugin access stage,why must use lurcache get conf? actually params 
already provided.
   **example**
   ```
   function _M.access(conf, ctx)
       local lim, err = core.lrucache.plugin_ctx(plugin_name, ctx,
                                                 create_limit_obj, conf)
   ```
   `core.log.info("conf: ", cre.json.delay_encode(conf, true)) --can print conf 
info
   `
   
   2.lrucache in apisix,why must band plugin? why don't like redis set key 
value, this simple.
   **example**
   ```
   local data = cache:get(key)
   if not data then 
       data = core.etcd.get(key)
   end
   ```
   
   **remark**
   My english is not good.Too much forgiveness.
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):1.3
   * OS:linux
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to