Kick expirations back on view
This commit is contained in:
parent
cd9bf18d29
commit
92e0f579ca
5 changed files with 12 additions and 8 deletions
|
@ -11,7 +11,7 @@ var DocumentHandler = function(options) {
|
|||
};
|
||||
|
||||
// Handle retrieving a document
|
||||
DocumentHandler.prototype.handleGet = function(key, response) {
|
||||
DocumentHandler.prototype.handleGet = function(key, response, skipExpire) {
|
||||
this.store.get(key, function(ret) {
|
||||
if (ret) {
|
||||
winston.verbose('retrieved document', { key: key });
|
||||
|
@ -23,7 +23,7 @@ DocumentHandler.prototype.handleGet = function(key, response) {
|
|||
response.writeHead(404, { 'content-type': 'application/json' });
|
||||
response.end(JSON.stringify({ message: 'document not found' }));
|
||||
}
|
||||
});
|
||||
}, skipExpire);
|
||||
};
|
||||
|
||||
// Handle adding a new Document
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue