Package org.springframework.data.redis.core

Examples of org.springframework.data.redis.core.RedisCommand


    }
  }

  private void validateCommand(CommandType cmd, byte[]... args) {

    RedisCommand redisCommand = RedisCommand.failsafeCommandLookup(cmd.name());
    if (!RedisCommand.UNKNOWN.equals(redisCommand) && redisCommand.requiresArguments()) {
      try {
        redisCommand.validateArgumentCount(args != null ? args.length : 0);
      } catch (IllegalArgumentException e) {
        throw new InvalidDataAccessApiUsageException(String.format("Validation failed for %s command.", cmd), e);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.redis.core.RedisCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.