getBytes

open fun getBytes(@NonNull() key: String): Array<Byte>

Return the bytes in cache.

Return

the bytes if cache exists or null otherwise

Parameters

key

The key of cache.

open fun getBytes(@NonNull() key: String, defaultValue: Array<Byte>): Array<Byte>

Return the bytes in cache.

Return

the bytes if cache exists or defaultValue otherwise

Parameters

key

The key of cache.

defaultValue

The default value if the cache doesn't exist.