1
0
mirror of https://github.com/seejohnrun/haste-server.git synced 2025-12-13 23:15:55 +00:00

Rewrite the memcached client

* Update syntax to ES6
* Use `memcached` instead of `memcache`
* Fix restrictions where expirations weren't pushed forward on GET
* Fix a bug where we were unnecessarily bumping expirations on key search

Closes #201
This commit is contained in:
John Crepezzi
2018-02-16 09:52:44 -05:00
parent ad7702aaf4
commit 827e7b51b5
4 changed files with 51 additions and 45 deletions

View File

@@ -123,7 +123,7 @@ DocumentHandler.prototype.chooseKey = function(callback) {
} else {
callback(key);
}
});
}, true); // Don't bump expirations when key searching
};
DocumentHandler.prototype.acceptableKey = function() {