Class RedisClientLibraryInfo

java.lang.Object
org.springframework.data.redis.util.RedisClientLibraryInfo

public final class RedisClientLibraryInfo extends Object
Utility class for building Spring Data Redis client library identification strings for Redis CLIENT SETINFO.
Since:
4.1
Author:
Viktoriya Kutsarova
See Also:
  • Field Details

    • FRAMEWORK_NAME

      public static final String FRAMEWORK_NAME
      Spring Data Redis framework name constant for CLIENT SETINFO.
      See Also:
  • Method Details

    • getVersion

      public static String getVersion()
      Get the Spring Data Redis version from the package manifest.
      Returns:
      the Spring Data Redis version, or "unknown" if the version cannot be determined (e.g. when running from an IDE or tests without a populated Implementation-Version).