Provides a cache which can be used to store and access values.
Computes a value if it is not found in a cache Can be supplied to
Checks if a cached value is still valid Can be supplied to
Represents an entry of a Cache Such entries are created and managed by the cache implementation.
Invoked regularly to remove outdated entries from the system caches.
Provides access to all managed caches Is responsible for creating new caches using
Caches a single value to prevent frequent re-computation.
All caches are created using the
Cache instead of simple maps provides various benefits. One is, that
a cache as a limited size and will start to drop entries once it is full instead of using an uncontrolled
large part of the heap. Additionally all caches are evicted regularly so that unused entries are removed to
again free central resources.
Also, all classes provide details of the current state of a cache, as well as the state of each entry which permits to monitor and understand the system state.
Copyright © 2017. All rights reserved.