Skip to content

ExpressJS Middleware, Then-Redis Dependency

Compare
Choose a tag to compare
@blimmer blimmer released this 01 Jun 13:30
· 40 commits to master since this release

Express Middleware

The root dependency is now usable as an express middleware. See the README for details on how to use. We exposed the fetchIndex helper method if you need to do post-processing of the index.html string retrieved from Redis.

Then-Redis Dependency

In 0.0.1, you needed to pass a connected Redis client to the helper methods. This illuminated problems with variances between clients, specifically node_redis and then-redis. To help alleviate these issues, you now pass a configuration string/object to the middleware or fetchIndex helper and we handle the connection to redis (using then-redis internally).