public class IdBasedCacheKey extends Object implements CacheKey
Constructor and Description |
---|
IdBasedCacheKey(Long id)
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.
|
Long |
getId()
The wrapped ID.
|
boolean |
isUniquePerClient()
Returns true if the cache key should be treated as client specific.
|
public IdBasedCacheKey(Long id)
id
- the ID to be cached; must not be nullpublic String getCacheKeyString()
getCacheKeyString
in interface CacheKey
public Long getId()
public boolean isUniquePerClient()
isUniquePerClient
in interface CacheKey
Copyright © 2019 Communote team. All rights reserved.