node-orm2 icon indicating copy to clipboard operation
node-orm2 copied to clipboard

Custom cache like Redis

Open rvanzon opened this issue 10 years ago • 2 comments

Hi,

I am using pm2 with multiple instances (-i max). Because node-orm2 uses memory-caching this causes problems because it's not shared between the different instances.

Is it possible to use Redis for caching? Or what would be the best way to add this?

rvanzon avatar Jul 15 '14 06:07 rvanzon

#287

gumeniukcom avatar Oct 15 '15 19:10 gumeniukcom

I'd recommend using the DB cache. If using Postgres, just increase the cache size in the postgresql.conf.

dxg avatar Oct 15 '15 21:10 dxg