implement InDiskCacheDigest Set function.