1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Files
docs/middleware
James M. Greene 84547e54c7 Use node-redis for page cache (#18421)
* Use [node-]redis as a direct dependency

* Extract Redis client creation to its own module

* Attach extensive logging in the Redis client creation module

* Allow the rate limiter to pass requests when Redis is disconnected

* Update rate-limit-redis

* Default error input to empty object for formatRedisError method

* Provide a name for the rate limiter's Redis client

* Include redis-mock, exclude ioredis/ioredis-mock

* Remove unused RedisAccessor#exists method

* Switch RedisAccessor to use redis/redis-mock

* Provide a name for logging on the Redis page cache

* Remove extraneous trailing space from Redis logging prefix

Our updated use of console.* will already be adding a space after the prefix

* Replace ioredis-mock with redis-mock in tests

* Revert removal of ioredis dependency

* Bind Redis client to async promisified methods

* Extract former RedisAccessor constructor tests to new create-client tests

* Update RedisAccessor tests to work with the callback-based redis client

* Handle formatting Redis errors (or not) with more resiliency
2021-03-29 17:34:22 +00:00
..
2021-03-11 01:12:41 +00:00
2021-03-11 01:12:41 +00:00
2021-03-11 01:12:41 +00:00
2021-03-11 01:12:41 +00:00
2020-09-27 14:10:11 +02:00
2020-09-27 14:10:11 +02:00
2021-03-11 01:12:41 +00:00
2020-09-28 09:44:14 -07:00
2021-03-11 01:12:41 +00:00
2021-03-11 01:12:41 +00:00
2020-09-27 14:10:11 +02:00
2021-03-11 01:12:41 +00:00
2021-03-11 01:12:41 +00:00
2020-09-27 14:10:11 +02:00
2021-03-11 01:12:41 +00:00
2021-03-11 01:12:41 +00:00
2021-03-11 01:12:41 +00: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: