![JAR search and dependency download from the Maven repository](/logo.png)
com.alachisoft.ncache.client.internal.caching.Shorter Maven / Gradle / Ivy
package com.alachisoft.ncache.client.internal.caching;
import com.alachisoft.ncache.runtime.util.ConvertorBase64;
import java.util.UUID;
final class Shorter {
public String getGuidString() {
String enc = ConvertorBase64.encodeBytes(UUID.randomUUID().toString().getBytes());
enc = enc.replace("/", "_");
enc = enc.replace("+", "-");
return enc.substring(0, 22);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy