CacheKeyUpdater

interface CacheKeyUpdater<T>

An interface that updates a MessageDigest with the given value as part of a process to generate a disk cache key.

Parameters

<T>

The type of the option.

Functions

Link copied to clipboard
abstract fun update(    keyBytes: Array<Byte>,     value: T,     messageDigest: MessageDigest)
Updates the given MessageDigest with the bytes of the given key (to avoid incidental value collisions when values are not particularly unique) and value.