Enabling persistent cache to cache file using pipe mechanisim