Added status changing + history

- Status's for comments is now an array of objects
This commit is contained in:
Wyatt Johnson
2016-12-05 11:28:27 -05:00
parent 5485a446f3
commit 2f7f0249b2
22 changed files with 694 additions and 312 deletions
+15
View File
@@ -76,6 +76,21 @@ cache.get = (key) => new Promise((resolve, reject) => {
});
});
/**
* This invalidates a cached entry in the cache.
* @param {Mixed} key Either an array of items composing a key or a string
* @return {Promise}
*/
cache.invalidate = (key) => new Promise((resolve, reject) => {
cache.client.del(keyfunc(key), (err) => {
if (err) {
return reject(err);
}
resolve();
});
});
/**
* This sets a value on the key with the expiry and then resolves once it is
* done.