All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lettuce.core.LettuceVersion Maven / Gradle / Ivy

Go to download

Advanced and thread-safe Java Redis client for synchronous, asynchronous, and reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs and much more.

The newest version!
package io.lettuce.core;

/**
 * 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. * * @author Mark Paluch * @since 6.3 */ public final class LettuceVersion { private LettuceVersion() { } /** * Return the library name. */ public static String getName() { return "Lettuce"; } /** * Return the full version string of the present Lettuce codebase, or {@code null} if it cannot be determined. * * @see Package#getImplementationVersion() */ public static String getVersion() { Package pkg = LettuceVersion.class.getPackage(); return (pkg != null ? pkg.getImplementationVersion() : null); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy