Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add save and lastsave to pipeline

  • Loading branch information...
commit 586cc9f6d9b87b0369caf60a238aef12bb9510cb 1 parent f43ca04
Jonathan Leibiusky authored
11 src/main/java/redis/clients/jedis/Commands.java
View
@@ -168,8 +168,9 @@ public void sort(final String key, final SortingParams sortingParameters,
public void sort(final String key, final String dstkey);
public void brpop(final String[] args);
-
- public void brpoplpush(final String source, final String destination, final int timeout);
+
+ public void brpoplpush(final String source, final String destination,
+ final int timeout);
public void zcount(final String key, final double min, final double max);
@@ -220,9 +221,13 @@ public void linsert(final String key, final LIST_POSITION where,
public void bgsave();
+ public void lastsave();
+
+ public void save();
+
public void configSet(final String parameter, final String value);
public void configGet(final String pattern);
-
+
public void configResetStat();
}
8 src/main/java/redis/clients/jedis/Pipeline.java
View
@@ -430,4 +430,12 @@ public void brpoplpush(String source, String destination, int timeout) {
public void configResetStat() {
client.configResetStat();
}
+
+ public void save() {
+ client.save();
+ }
+
+ public void lastsave() {
+ client.lastsave();
+ }
}
8 src/main/java/redis/clients/jedis/PipelineBlock.java
View
@@ -426,5 +426,13 @@ public void configResetStat() {
client.configResetStat();
}
+ public void save() {
+ client.save();
+ }
+
+ public void lastsave() {
+ client.lastsave();
+ }
+
public abstract void execute();
}
Please sign in to comment.
Something went wrong with that request. Please try again.