update

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.

If your Option shouldn't affect the disk cache key, you should not implement this class and use memory or memory instead.

Parameters

keyBytes

The bytes of the String used as the key for this particular . Should be added to the messageDigest using update by all implementations if the digest is updated with the given value parameter.

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.