Class DefaultFilesCache

All Implemented Interfaces:
FilesCache, VfsComponent

A simple FilesCache implementation.

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

Cached FileObjects as well as FileSystems are only removed when clear(FileSystem) is called (i.e. on filesystem 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.