apicache
apicache copied to clipboard
Pros/Cons of using Redis over Default
What is the difference between using the default memory cache and using Redis? In what cases is one preferred over the other?
Thank you :)
Using Redis (or something like it) would allow your cache to be shared among multiple node processes. Otherwise each process will duplicate its own cache.
Redis will be very slightly slower than in-memory cache if a shared cache is not a concern.
When in doubt, measure :) There are tons of other pros/cons but those are the two that come to my mind in this 30 second period.