mysqlnode.jsmemcachedsails.js

How to use memcache with SailsJS models?


Are solutions for use with Nodejs MySQL, but I found no possibility to fasten them to the models have sailsjs. How to cache database queries mysql? How can I do it?


Solution

  • You can create your own Sails adapter for MySQL with cache support using existing sails-mysql adpater. Basically you need to extend find method with caching functionality.