public interface AdaptiveMostUsedLabelsCache
Modifier and Type | Method and Description |
---|---|
void |
deleteAllPersistedRecords()
Removes all records from persistent cache
|
void |
deletePersistedRecord(long spaceId)
Removes a record from the persistent cache
|
void |
deletePersistedRecordForSite()
Removes a cache record for the entire site (global most popular labels)
Does not remove cache records for spaces
|
List<LiteLabelSearchResult> |
getSiteRecord(int limit)
Reads most used labels for the whole site
Implementation can use its own hard limit if the provided limit is too large
|
List<LiteLabelSearchResult> |
getSpaceRecord(long spaceId,
int limit)
Reads most used labels for the particular space from cache
Implementation can use its own hard limit if the provided limit is too large
|
List<LiteLabelSearchResult> |
getSpaceRecord(String spaceKey,
int limit)
Reads most used labels for the particular space from cache
Implementation can use its own hard limit if the provided limit is too large
|
List<LiteLabelSearchResult> getSiteRecord(int limit)
limit
- - limitList<LiteLabelSearchResult> getSpaceRecord(long spaceId, int limit)
spaceId
- - space idList<LiteLabelSearchResult> getSpaceRecord(String spaceKey, int limit)
spaceKey
- - space keyvoid deleteAllPersistedRecords()
void deletePersistedRecord(long spaceId)
spaceId
- - space idvoid deletePersistedRecordForSite()
Copyright © 2003–2021 Atlassian. All rights reserved.