dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 377 forks source link

Custom cache like Redis #533

Open rvanzon opened 10 years ago

rvanzon commented 10 years ago

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?

gumeniukcom commented 8 years ago

287

dxg commented 8 years ago

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