Partial implementation of DiskCache.