Class LocalFileCacheAccess<K,​V>


  • public class LocalFileCacheAccess<K,​V>
    extends CacheAccess<K,​V>
    • Constructor Detail

      • LocalFileCacheAccess

        public LocalFileCacheAccess​(String cacheId,
                                    String cacheRegion,
                                    String keySerializer,
                                    String valueSerializer,
                                    File cacheDir)
      • LocalFileCacheAccess

        public LocalFileCacheAccess​(String cacheId,
                                    String cacheRegion,
                                    String keySerializer,
                                    String valueSerializer,
                                    File cacheDir,
                                    long memCacheSize)
    • Method Detail

      • getCache

        public Map<K,​V> getCache()
      • commit

        public void commit()
        Description copied from class: CacheAccess
        Committing the cache contents to file. This is the operation that makes the index actually persistent.
        Specified by:
        commit in class CacheAccess<K,​V>
      • put

        public boolean put​(K key,
                           V value)
        Specified by:
        put in class CacheAccess<K,​V>
      • close

        public void close()