Fork of prerender plugin for memjs caching by lammertv, to be used with the prerender node application from https://github.com/prerender/prerender.
As original plugin, this fork will store all prerendered pages into a memcache service using memjs client. But this fork also extends the original plugin with expiration functionality.
In your local prerender project run:
$ npm install hooke/prerender-memjs-cache --save
Then in the server.js that initializes the prerender:
server.use(require('prerender-memjs-cache'));
Set the page's time-to-live value in your environment:
export PAGE_TTL=3600
The plugin uses the memjs module. It's configuration is explained at https://github.com/alevy/memjs/blob/master/README.md.
possibility to set page TTL on each caching operation