Package com.bumptech.glide.load
Interface Option.CacheKeyUpdater<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidupdate(byte[] keyBytes, T value, java.security.MessageDigest messageDigest)Updates the givenMessageDigestwith the bytes of the given key (to avoid incidental value collisions when values are not particularly unique) and value.
-
-
-
Method Detail
-
update
void update(@NonNull byte[] keyBytes, @NonNull T value, @NonNull java.security.MessageDigest messageDigest)Updates the givenMessageDigestwith the bytes of the given key (to avoid incidental value collisions when values are not particularly unique) and value.If your
Optionshouldn't affect the disk cache key, you should not implement this class and useOption.memory(String)orOption.memory(String, Object)instead.- Parameters:
keyBytes- The bytes of theStringused as the key for this particularOption. Should be added to themessageDigestusingMessageDigest.update(byte[])by all implementations if the digest is updated with the givenvalueparameter.value- The value of of this particular option. Typically you should convert the value to a byte array using some stable mechanism and then callMessageDigest.update(byte[])to update the given digest.
-
-