Class FSDefaultCacheStore

  • All Implemented Interfaces:
    FSCacheEx<String,​FSCacheValue>

    public class FSDefaultCacheStore
    extends Object
    implements FSCacheEx<String,​FSCacheValue>
    A simple default cache implementation, mainly for testing. For production you will probably want to wrap Guava's cache implementation or something similar. This implementation does not use synchronisation beyond using a ConcurrentHashMap internally. Specifically, the get(String, Callable) may call the loader multiple times if called in close succession.