1 package com.atlassian.user.impl.cache;
2
3 import java.util.List;
4
5
6 /**
7 * @deprecated since 1.25, use {@link com.atlassian.cache.CacheManager} or {@link com.atlassian.cache.CacheFactory} instead
8 */
9 public interface CacheManager
10 {
11 /**
12 * Retrieve the cache with a particular name
13 *
14 * @param cacheName the unique name of the cache
15 * @return the appropriate cache
16 */
17 Cache getCache(String cacheName);
18
19 /**
20 * Flush the contents of all caches registered with the cache manager
21 */
22 void flushCaches();
23
24 /**
25 * Set the caches that should not be flushed when flushCaches() is called
26 *
27 * @param cacheNames the names of the cache, each a {@link String}
28 */
29 void setNonFlushableCaches(List/*<String>*/ cacheNames);
30 }