-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When I use encryption and save cache. After closing app completely and after launching cache doesn't exists.
val cache: Cache<String> = Cache.Builder()
.encryptStrategy(KeyStoreEncryptStrategy(this)) //or Des3EncryptStrategy
.build(applicationContext)
mBinding.btnWrite.setOnClickListener {
cache["test"] = "Hello World"
}
mBinding.btnRead.setOnClickListener {
val fromCache = cache["test"]
if (fromCache != null) {
Log.d(TAG, "Cache exists")
} else {
Log.d(TAG, "Cache doesn't exist")
}
}
Metadata
Metadata
Assignees
Labels
No labels