public class StringIdBasedCacheKey extends Object implements CacheKey
| Constructor and Description |
|---|
StringIdBasedCacheKey(String id,
String prefix)
Creates a cache key encapsulating the ID.
|
StringIdBasedCacheKey(String id,
String prefix,
boolean uniquePerClient)
Creates a cache key encapsulating the ID.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCacheKeyString()
String representation of the cache key which will be used for caching.
|
String |
getId()
The wrapped ID.
|
boolean |
isUniquePerClient()
Returns true if the cache key should be treated as client specific.
|
public StringIdBasedCacheKey(String id, String prefix)
id - the ID to be cached; must not be nullprefix - A prefix, which will be used for creating the cache key.public StringIdBasedCacheKey(String id, String prefix, boolean uniquePerClient)
id - the ID to be cached; must not be nullprefix - A prefix, which will be used for creating the cache key.uniquePerClient - See isUniquePerClient()public String getCacheKeyString()
getCacheKeyString in interface CacheKeypublic String getId()
public boolean isUniquePerClient()
isUniquePerClient in interface CacheKeyCopyright © 2019 Communote team. All rights reserved.