Package org.springframework.data.redis

Examples of org.springframework.data.redis.Version


    connectionFactory.setTimeout(100);

    connectionFactory.afterPropertiesSet();
    RedisConnection connection = connectionFactory.getConnection();

    Version version = Version.UNKNOWN;

    try {
      version = RedisVersionUtils.getRedisVersion(connection);
      connection.close();
    } finally {
View Full Code Here


    if (StringUtils.hasText(version)) {

      boolean sloppyMatch = version.endsWith("+");
      String cleanedVersionString = version.replace("+", "");
      Version expected = RedisVersionUtils.parseVersion(cleanedVersionString);

      if (sloppyMatch) {
        if (redisVersion.compareTo(expected) < 0) {
          throw new AssumptionViolatedException("Expected Redis version " + version + " but found " + redisVersion);
        }
View Full Code Here

TOP

Related Classes of org.springframework.data.redis.Version

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.