com.liferay.portal.cache.key
Class JavaMD5CacheKeyGenerator
java.lang.Object
com.liferay.portal.cache.key.BaseCacheKeyGenerator
com.liferay.portal.cache.key.JavaMD5CacheKeyGenerator
- All Implemented Interfaces:
- CacheKeyGenerator, Cloneable
public class JavaMD5CacheKeyGenerator
- extends BaseCacheKeyGenerator
JavaMD5CacheKeyGenerator
public JavaMD5CacheKeyGenerator()
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
JavaMD5CacheKeyGenerator
public JavaMD5CacheKeyGenerator(int maxLength)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
clone
public CacheKeyGenerator clone()
- Specified by:
clone
in interface CacheKeyGenerator
- Specified by:
clone
in class BaseCacheKeyGenerator
getCacheKey
public String getCacheKey(String key)
getCacheKey
public String getCacheKey(String[] keys)
getCacheKey
public String getCacheKey(StringBundler sb)
isCallingGetCacheKeyThreadSafe
public boolean isCallingGetCacheKeyThreadSafe()
- Specified by:
isCallingGetCacheKeyThreadSafe
in interface CacheKeyGenerator
- Overrides:
isCallingGetCacheKeyThreadSafe
in class BaseCacheKeyGenerator
setMaxLength
public void setMaxLength(int maxLength)
encodeCacheKey
protected String encodeCacheKey(byte[] bytes)