ranm8 / requestify

Simplifies node HTTP request making.
http://ranm8.github.io/requestify
MIT License
223 stars 55 forks source link

cache and redis #53

Open ghost opened 7 years ago

ghost commented 7 years ago

hey there,

i'm using requestify with the redis cache function. Im caching file.php?somekey=somevalue and my problem is now. The redis keys doesn't expire. The caching work great, but now i got alot of dead redis keys.

Something like:

            cache: {
                                cache: true,
                                expires: 60 * 1000,
                                remove: 60 * 60 * 1000
                            }

I mean we could just use redis.setex instead of redis.set

Maybe there is function like this already, but i didn't found it.