add native execute for JedisConnection
This commit is contained in:
@@ -1152,4 +1152,13 @@ public class DefaultStringRedisConnection implements StringRedisConnection {
|
||||
public void openPipeline() {
|
||||
delegate.openPipeline();
|
||||
}
|
||||
|
||||
|
||||
public Object execute(String command, byte[]... args) {
|
||||
return delegate.execute(command, args);
|
||||
}
|
||||
|
||||
public Object execute(String command, String... args) {
|
||||
return execute(command, serializeMulti(args));
|
||||
}
|
||||
}
|
||||
@@ -25,4 +25,16 @@ package org.springframework.data.redis.connection;
|
||||
public interface RedisCommands extends RedisKeyCommands, RedisStringCommands, RedisListCommands, RedisSetCommands,
|
||||
RedisZSetCommands, RedisHashCommands, RedisTxCommands, RedisPubSubCommands, RedisConnectionCommands,
|
||||
RedisServerCommands {
|
||||
|
||||
|
||||
/**
|
||||
* 'Native' or 'raw' execution of the given command along-side the given arguments.
|
||||
* The command is executed as is, with as little 'interpretation' as possible - it is up to the caller
|
||||
* to take care of any processing of arguments or the result.
|
||||
*
|
||||
* @param command Command to execute
|
||||
* @param args Possible command arguments (may be null)
|
||||
* @return execution result.
|
||||
*/
|
||||
Object execute(String command, byte[]... args);
|
||||
}
|
||||
@@ -42,6 +42,8 @@ public interface StringRedisConnection extends RedisConnection {
|
||||
String getValueAsString();
|
||||
}
|
||||
|
||||
Object execute(String command, String... args);
|
||||
|
||||
Boolean exists(String key);
|
||||
|
||||
Long del(String... keys);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user