@Authors(value="Nikolche Mihajlovski") @Since(value="5.3.0") public interface CacheAtom<V>
| Modifier and Type | Method and Description |
|---|---|
V |
get()
Returns the cached value, recalculating/reloading it if expired.
|
V |
getIfExists()
Retrieves the cached value if it exists, or
null otherwise. |
void |
invalidate()
Invalidates the cached value.
|
void |
set(V value)
Sets a new cached value.
|
Copyright © 2014–2018 Nikolche Mihajlovski and contributors. All rights reserved.