1 package com.atlassian.cache;
2
3 import com.atlassian.annotations.PublicApi;
4
5 /**
6 * A Resettable reference.
7 *
8 * @since 2.0
9 */
10 @PublicApi
11 public interface CachedReference<V>
12 {
13 /**
14 * Get a value from the cache.
15 *
16 * @return the cached value
17 */
18 V get();
19
20 /**
21 * Resets (clears/invalidates) this reference.
22 */
23 void reset();
24 }