Script commands are supported.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package redis.clients.jedis;
|
||||
|
||||
import redis.clients.jedis.Protocol.Keyword;
|
||||
import redis.clients.util.SafeEncoder;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -9,6 +10,7 @@ import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import static redis.clients.jedis.Protocol.toByteArray;
|
||||
import static redis.clients.jedis.Protocol.Command.SCRIPT;
|
||||
|
||||
public class Client extends BinaryClient implements Commands {
|
||||
public Client(final String host) {
|
||||
@@ -621,4 +623,16 @@ public class Client extends BinaryClient implements Commands {
|
||||
}
|
||||
evalsha(SafeEncoder.encode(sha1),k,a);
|
||||
}
|
||||
|
||||
public void scriptExists(String... sha1){
|
||||
final byte[][] bsha1 = new byte[sha1.length][];
|
||||
for (int i = 0; i < bsha1.length; i++) {
|
||||
bsha1[i] = SafeEncoder.encode(sha1[i]);
|
||||
}
|
||||
scriptExists(bsha1);
|
||||
}
|
||||
|
||||
public void scriptLoad(String script){
|
||||
scriptLoad(SafeEncoder.encode(script));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user