Class ReadThroughMostPopularCache<T extends Serializable>
java.lang.Object
com.atlassian.confluence.impl.labels.ReadThroughMostPopularCache<T>
Maintains a cache of the "most popular things" (globally, and by space). The code is agnostic to what the "things"
are, but in practice it's quite specific to labels.
- Since:
- 7.5
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
static <T extends Serializable>
ReadThroughMostPopularCache<T>getMostPopularInSpace
(String spaceKey, Optional<Integer> maxResults, Function<Optional<Integer>, List<T>> delegate)
-
Method Details
-
create
public static <T extends Serializable> ReadThroughMostPopularCache<T> create(com.atlassian.cache.CacheFactory cacheFactory, CoreCache cacheName) -
clear
public void clear() -
getMostPopularGlobal
-
getMostPopularInSpace
-