expire functionality in dbal

This commit is contained in:
Baris Soner Usakli
2013-12-31 19:08:38 -05:00
parent 742c8fb43c
commit 438f90d859
2 changed files with 28 additions and 5 deletions

View File

@@ -211,6 +211,14 @@
redisClient.keys(key, callback);
}
module.expire = function(key, seconds, callback) {
redisClient.expire(key, seconds, callback);
}
module.expireAt = function(key, timestamp, callback) {
redisClient.expireat(key, timestamp, callback);
}
//hashes
module.setObject = function(key, data, callback) {