|
|
@ -160,7 +160,9 @@ public class RedissonConnection extends AbstractRedisConnection {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Object execute(String command, byte[]... args) {
|
|
|
|
public Object execute(String command, byte[]... args) {
|
|
|
|
for (Method method : this.getClass().getDeclaredMethods()) {
|
|
|
|
for (Method method : this.getClass().getDeclaredMethods()) {
|
|
|
|
if (method.getName().equalsIgnoreCase(command) && Modifier.isPublic(method.getModifiers())) {
|
|
|
|
if (method.getName().equalsIgnoreCase(command)
|
|
|
|
|
|
|
|
&& Modifier.isPublic(method.getModifiers())
|
|
|
|
|
|
|
|
&& (method.getParameterTypes().length == args.length)) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Object t = execute(method, args);
|
|
|
|
Object t = execute(method, args);
|
|
|
|
if (t instanceof String) {
|
|
|
|
if (t instanceof String) {
|
|
|
|