1
0
mirror of synced 2026-01-28 18:03:28 -05:00
Files
docs/middleware
James M. Greene 068c472084 Cache rendered pages in Redis (#17106)
* Explicitly set the Redis database number used for rate limiting

* Switch to using ioredis as the Redis client for rate limiting

* Install ioredis-mock as a primary dependency

* Create a Redis BasicAccessor class and tests

* Switch rendered page caching to use Redis for storage

* Add support for additional Redis SET options like TTLs

* Remove currently unused methods

* Rename redis-accessors/basic to redis-accessor and remove extra fluff

* Change default behavior for cache setting to throw if an error occurs

Add option allowSetFailures to facilitate graceful failures

* Allow SET failures to fail gracefully for the rendered page cache

* Remove as-yet unneeded serialization options from RedisAccessor

* Move Redis client construction into RedisAccessor constructor, just pass in databaseNumber as option

* Remove rendered-page-cache in favor of direct RedisAccessor use

* Add tests for RedisAccessor constructor param validations

* Eliminate one roundtrip to Redis for the cached HTML existence check

Are we fast yet?

* Set a rendered page cache TTL of 24 hours
2021-01-06 15:30:51 -06:00
..
2020-09-27 14:10:11 +02:00
2020-09-27 14:10:11 +02:00
2020-09-27 14:10:11 +02:00
2020-09-28 09:44:14 -07:00
2020-11-13 14:31:59 -05:00
2020-11-12 13:31:57 -05:00
2020-09-27 14:10:11 +02:00
2020-12-17 11:57:18 -08:00
2020-09-27 14:10:11 +02:00
2020-12-17 11:57:18 -08:00
2020-11-19 13:06:20 -05:00

Middleware

Each file in this directory exports an Express Middleware function.

For more info, see https://expressjs.com/en/guide/using-middleware.html

Subdirectories

There are subdirectories for different types of middleware: