This is a key-value store with some nice properties: GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Skip to content.
Note that since writes are asynchronous, an in-flight write may be lost if the app is killed before the data has been written to disk. You signed out in another tab or window.
Dismiss Join GitHub today GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together. Right here. The app simply increments a counter stored in Remember and tells you the value. Press h to open a hovercard with more details. Find file. Clone and build this repo in Android Studio to see an example of a sample app. Doing a write followed by a read should return the value you just put.
If nothing happens, download Xcode and try again. Launching GitHub Desktop...
Writes and deletes happen asynchronously with callbacks. This only has to be done once, and should happen in your app's onCreate:. Remember An in-memory data store backed by shared preferences, for Android.
Include JCenter as a repository in your build. If nothing happens, download the GitHub extension for Visual Studio and try again. Fetching latest commit…. Reads and writes can happen from anywhere without the need for external synchronization. If you require true 'commit' semantics then Remember is not for you. Everything is loaded into memory so reads can happen on the UI thread. Download ZIP.
Launching Visual Studio... Every public method is safe to call from the UI thread. Download Grab the artifact via JCenter. Go back.
A preferences-backed key-value store. Reload to refresh your session.