setWithResult
Stores a key-value pair. This function uses a CompletableDeferred to handle the asynchronous callback and returns a Result object.
Return
A Result object containing the result of the operation.
Parameters
key
The key to store the value under.
value
The value to store.
Stores a key-value pair in secure storage using a CompletableDeferred and returns a Result.
Return
A Result object containing the result of the operation.
Parameters
key
The key to store the value under.
value
The value to store.