fune/mobile/android/android-components/components/browser/storage-memory
Grisha Kruglov 1d92f12ebc [components] Switch HistoryStorage to use Deferred results and suspend functions
Underlying HistoryStorage implementations might be blocking on IO (Rust Places, room),
or migth be non-blocking (in-memory). A Deferred return type for get* methods makes
it convenient to wrap both regular and `async` operations. Use of 'suspend' functions
serves the same role for write* methods.

This change makes it obvious at the engine call-site that the underlying implementation
might suspend, at which point we can wrap calls in `runBlocking` or use another coroutine builder.
2018-11-05 17:27:42 -08:00
..
src [components] Switch HistoryStorage to use Deferred results and suspend functions 2018-11-05 17:27:42 -08:00
build.gradle [components] Update publishing configuration of browser-storage-memory. 2018-10-31 20:39:48 +01:00
proguard-rules.pro [components] Add an in-memory implementation of concept-storage 2018-10-26 15:42:19 -07:00
README.md [components] Add an in-memory implementation of concept-storage 2018-10-26 15:42:19 -07:00

Android Components > Browser > Memory Storage

An in-memory implementation of concept-storage. Data is not persisted to disk, and does not survive a restart. Not suitable for syncing.

Setting up the dependency

Use Gradle to download the library from maven.mozilla.org (Setup repository):

implementation "org.mozilla.components:browser-storage-memory:{latest-version}"

License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/