Skip to content

Commit

Permalink
Refactor to use redis v4
Browse files Browse the repository at this point in the history
* Export url generation function that can take existing cache options to create a valid connection url for redis v4
* Wrap all cache functions in a connect promise since v4 does not auto connect https://github.com/redis/node-redis/blob/master/docs/v3-to-v4.md
* Include 'legacyMode' option in redis client creation so most of existing code can be used in place
* Fix isCacheableValue usage
* Use v4 client for disconnect in tests
  • Loading branch information
FoxxMD committed Sep 7, 2022
1 parent 3c930d1 commit 0a0f8bf
Show file tree
Hide file tree
Showing 3 changed files with 509 additions and 314 deletions.
Loading

0 comments on commit 0a0f8bf

Please sign in to comment.