You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/10/30 06:51:14 UTC
[GitHub] [apisix] gewei2000 opened a new issue #2574: request help: new plugin feature
gewei2000 opened a new issue #2574:
URL: https://github.com/apache/apisix/issues/2574
### Issue description
I want to develop a plugin, the plugin is to get the specified key (such as user id) from the cookie, then go to redis to read a json through this key, put it in the cache, let it automatically expire after 10 minute, do we have this cache components?
@membphis @moonming
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [apisix] gewei2000 commented on issue #2574: request help: new plugin feature
Posted by GitBox <gi...@apache.org>.
gewei2000 commented on issue #2574:
URL: https://github.com/apache/apisix/issues/2574#issuecomment-719331366
> When you create `lru` object, you can enable the option `invalid_stale`.
>
> https://github.com/apache/apisix/blob/9b63fd5710427820a9002920f8b48cb43bf06cd8/apisix/init.lua#L118
thks
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [apisix] membphis commented on issue #2574: request help: new plugin feature
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2574:
URL: https://github.com/apache/apisix/issues/2574#issuecomment-719322181
When you create `lru` object, you can enable the option `invalid_stale`.
https://github.com/apache/apisix/blob/9b63fd5710427820a9002920f8b48cb43bf06cd8/apisix/init.lua#L118
----------------------------------------------------------------
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:
users@infra.apache.org