@Transactional(propagation=REQUIRES_NEW)
public interface AdaptiveLabelCacheDao
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all the records
|
long |
getSpaceIdByKey(String spaceKey)
LabelManager does not work with space ids (only with space keys)
So this method is required to retrieve spaces and get their ids
Could be removed when LabelManager start supporting finding most used labels by space id
|
String |
getSpaceKeyFromSpaceId(long spaceId)
LabelManager does not work with space ids (only with space keys)
So this method is required to retrieve spaces and get their keys
Could be removed when LabelManager start supporting finding most used labels by space id
|
LiteSearchResultCacheEntry |
read(long spaceId)
Reads cached record by space id.
|
void |
removeRecord(long spaceId)
Removes a record
|
void |
removeRecordsExpiredAfter(long timestamp)
Clears expired records
|
void |
write(long spaceId,
LiteSearchResultCacheEntry cacheEntry)
Writes cached data to the persistent cache
A previous record will be overwritten
|
LiteSearchResultCacheEntry read(long spaceId)
spaceId
- - space idvoid write(long spaceId, LiteSearchResultCacheEntry cacheEntry)
spaceId
- - space idcacheEntry
- - cache entryvoid clear()
void removeRecordsExpiredAfter(long timestamp)
timestamp
- - timestampvoid removeRecord(long spaceId)
spaceId
- - space id@Transactional(readOnly=true) String getSpaceKeyFromSpaceId(long spaceId)
spaceId
- - space id@Transactional(readOnly=true) long getSpaceIdByKey(String spaceKey)
spaceKey
- - space keyCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences