|
|
|
@ -27,13 +27,9 @@ module.exports = function(redisClient, module) {
|
|
|
|
|
|
|
|
|
|
module.searchRemove = function(key, id, callback) {
|
|
|
|
|
if(key === 'post') {
|
|
|
|
|
module.postSearch.remove(id);
|
|
|
|
|
module.postSearch.remove(id, callback);
|
|
|
|
|
} else if(key === 'topic') {
|
|
|
|
|
module.topicSearch.remove(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (typeof callback === 'function') {
|
|
|
|
|
callback();
|
|
|
|
|
module.topicSearch.remove(id, callback);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -108,4 +104,4 @@ module.exports = function(redisClient, module) {
|
|
|
|
|
module.pexpireAt = function(key, timestamp, callback) {
|
|
|
|
|
redisClient.pexpireat(key, timestamp, callback);
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|