update
abstract fun update( keyBytes: Array<Byte>, value: T, messageDigest: MessageDigest)
Content copied to clipboard
Updates the given MessageDigest with the bytes of the given key (to avoid incidental value collisions when values are not particularly unique) and value.
If your Option shouldn't affect the disk cache key, you should not implement this class and use memory or memory instead.
Parameters
value
The value of of this particular option. Typically you should convert the value to a byte array using some stable mechanism and then call update to update the given digest.