jpodwys / cache-service

A tiered caching solution for JavaScript.
MIT License
12 stars 6 forks source link

refresh interval duration sets to 1' after first tick #18

Closed thanpolas closed 8 years ago

thanpolas commented 8 years ago

I have a 300 second (5 minute) default expiration set on both the redis store...

When I use set() with the refresh callback, the first time the refresh callback will be invoked is 5 minutes after the set was defined.

Every other refresh callback invocation will happen in 1 minute intervals

jpodwys commented 8 years ago

Are you referring to background refresh?

thanpolas commented 8 years ago

yes

jpodwys commented 8 years ago

The cache-service-redis PR merge referenced above needs to be duplicated to cache-service-cache-module and cache-service-node-cache. Putting this here as a reminder to myself.

jpodwys commented 8 years ago

After looking at the source for cache-service-cache-module and cache-service-node-cache, it appears that neither of them have the background refresh issue cache-service-redis had. Closing the issue.