Class ReadThroughMostPopularCache<T extends Serializable>
- java.lang.Object
-
- com.atlassian.confluence.impl.labels.ReadThroughMostPopularCache<T>
-
public class ReadThroughMostPopularCache<T extends Serializable> extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
static <T extends Serializable>
ReadThroughMostPopularCache<T>create(com.atlassian.cache.CacheFactory cacheFactory, CoreCache cacheName)
List<T>
getMostPopularGlobal(Optional<Integer> maxResults, Function<Optional<Integer>,List<T>> delegate)
List<T>
getMostPopularInSpace(String spaceKey, Optional<Integer> maxResults, Function<Optional<Integer>,List<T>> delegate)
-
-
-
Method Detail
-
create
public static <T extends Serializable> ReadThroughMostPopularCache<T> create(com.atlassian.cache.CacheFactory cacheFactory, CoreCache cacheName)
-
clear
public void clear()
-
getMostPopularGlobal
public List<T> getMostPopularGlobal(Optional<Integer> maxResults, Function<Optional<Integer>,List<T>> delegate)
-
-