public final class LettuceVersion extends Object
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.
Modifier and Type | Method and Description |
---|---|
static String |
getName()
Return the library name.
|
static String |
getVersion()
Return the full version string of the present Lettuce codebase, or
null if it cannot be determined. |
public static String getName()
public static String getVersion()
null
if it cannot be determined.Package.getImplementationVersion()
Copyright © 2023 lettuce.io. All rights reserved.