Class DefaultFilesCache

All Implemented Interfaces:
Closeable, AutoCloseable, FilesCache, VfsComponent

A simple FilesCache implementation.

This implementation caches every file with no expire or limit. All files and file systems are hard reachable references. This implementation holds a list of file system specific ConcurrentHashMaps in the main cache map.

Cached FileObjects as well as FileSystems are only removed when clear(FileSystem) is called (i.e. on file system close). When the used FileSystemManager is closed, it will also close this cache (which frees all entries).

Despite its name, this is not the fallback implementation used by DefaultFileSystemManager#init() anymore.