Skip to content

Cache never expire #101

@kouz75

Description

@kouz75

Hi,
We are using express-redis-cache with aws-serverless-express 3.x on AWS Lambda (node 6.10)

I have configure the redis cache ttl to 60s for Http Status 200:

app.use("/api/*",cache.route({expire: {200: 60, xxx: 10}}),function(req, res, next) { next(); });

Most of the time, cache is refresh correctly (each 60s) but sometime, the response is cache forever.

The bug appear only on production.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions