Implemented two storage modes for FilesystemCache