apicache icon indicating copy to clipboard operation
apicache copied to clipboard

Pros/Cons of using Redis over Default

Open athenawisdoms opened this issue 5 years ago • 1 comments

What is the difference between using the default memory cache and using Redis? In what cases is one preferred over the other?

Thank you :)

athenawisdoms avatar Feb 20 '20 03:02 athenawisdoms

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.

lincolnthree avatar Feb 21 '20 14:02 lincolnthree