Package io.lettuce.core
Class LettuceVersion
- java.lang.Object
-
- io.lettuce.core.LettuceVersion
-
public final class LettuceVersion extends Object
Class that exposes the Lettuce version. Fetches the "Implementation-Version" manifest attribute from the jar file.Note that some ClassLoaders do not expose the package metadata, hence this class might not be able to determine the Lettuce version in all environments. Consider using a reflection-based check instead — for example, checking for the presence of a specific Lettuce method that you intend to call.
- Since:
- 6.3
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getName()
Return the library name.static String
getVersion()
Return the full version string of the present Lettuce codebase, ornull
if it cannot be determined.
-
-
-
Method Detail
-
getName
public static String getName()
Return the library name.
-
getVersion
public static String getVersion()
Return the full version string of the present Lettuce codebase, ornull
if it cannot be determined.- See Also:
Package.getImplementationVersion()
-
-