moleculerjs / moleculer-web

:earth_africa: Official API Gateway service for Moleculer framework
http://moleculer.services/docs/moleculer-web.html
MIT License
292 stars 118 forks source link

resetTime should accept function #325

Open t1nky opened 1 year ago

t1nky commented 1 year ago

When using a memory store, having a single resetTime for all keys is fine. When using a custom store (with something like Redis), resetTime should not be stored in memory, allowing to get the value using a function (ex. using per-key value or global value).

As a workaround, I'm using headers: false with resetTime = 0