Storage<KeyT extends Object?, EncodedT extends Object?>.inMemory constructor
A storage that stores data in-memory.
This is a useful API for testing. Inside unit tests, you can override your Storage provider to use this implementation.
This implementation is not suitable for production use-cases, as it will not persist data across app restarts.
Implementation
@visibleForTesting
factory Storage.inMemory() = _InMemoryPersist<KeyT, EncodedT>;