Skip to content

Repository files navigation

jitpack.io

Rak

Rak is a data Storage Library for Android (NoSQL) using Kryo. I was inpirated by Paper-Lib mechanism and also the dish-rack (dish structure are neatly arranged).

Features

  • Insert, Remove, and Grab.
  • fast reading.
  • support: POJO.

Add Dependency

Add it in your root build.gradle at the end of repositories:

allprojects {
repositories {
...
maven { url'https://jitpack.io' }
}
}

and in dependency project

compile'com.github.isfaaghyth:Rak:1.0.0'

Starting

you must be initialize of Rak on onCreate() in Activity or Application.

Rak.initialize(context);

Insert an awesome data

insert data object.

Rak.entry("key", "value");
Rak.entry("key", hashMap);
Rak.entry("key", list);

Grab it!

grab data object.

Stringhai = Rak.grab("key");
HashMap<> testMap = Rak.grab("key");
List<> testMap = Rak.grab("key");

or using default value if doesn't exist in data storage.

Stringhai = Rak.grab("key", "default value");
HashMap<> testMap = Rak.grab("key", newHashMap());
List<> testMap = Rak.grab("key", newList());

Remove

Rak.remove("key"); //by keyRak.removeAll(); //completely remove all data

LICENSE

About

💦 Data Storage Library for Android.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages