mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
added pexpire and pexpireAt methods for redis and mongo. Added emoticons for leveldb (as per existing implementation by @psychobunny LOL)
This commit is contained in:
@@ -96,4 +96,12 @@ module.exports = function(redisClient, module) {
|
||||
module.expireAt = function(key, timestamp, callback) {
|
||||
redisClient.expireat(key, timestamp, callback);
|
||||
};
|
||||
|
||||
module.pexpire = function(key, ms, callback) {
|
||||
redisClient.pexpire(key, ms, callback);
|
||||
};
|
||||
|
||||
module.expireAt = function(key, timestamp, callback) {
|
||||
redisClient.pexpireat(key, timestamp, callback);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user