updated lru to latest
created new files posts/cache.js posts/parse.js posts/edit.js
This commit is contained in:
barisusakli
2015-04-20 17:56:43 -04:00
parent eb0e2fe75d
commit 1f06f90a50
14 changed files with 238 additions and 205 deletions

11
src/posts/cache.js Normal file
View File

@@ -0,0 +1,11 @@
var LRU = require('lru-cache');
var cache = LRU({
max: 1048576,
length: function (n) { return n.length; },
maxAge: 1000 * 60 * 60
});
module.exports = cache;