Skip to content

Commit

Permalink
implementing pexpire for ShardedJedis
Browse files Browse the repository at this point in the history
  • Loading branch information
nykolaslima committed Jan 30, 2015
1 parent ffbca78 commit eb419c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/redis/clients/jedis/ShardedJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public Long expire(String key, int seconds) {
Jedis j = getShard(key);
return j.expire(key, seconds);
}

public Long pexpire(final String key, final long milliseconds) {
Jedis j = getShard(key);
return j.pexpire(key, milliseconds);
}

public Long expireAt(String key, long unixTime) {
Jedis j = getShard(key);
Expand Down

0 comments on commit eb419c1

Please sign in to comment.