Skip to content
/ Rak Public
forked from isfaaghyth/Rak

💦 Data Storage Library for Android.

License

Notifications You must be signed in to change notification settings

abraincode/Rak

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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

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

String hai = Rak.grab("key", "default value");
HashMap<> testMap = Rak.grab("key", new HashMap());
List<> testMap = Rak.grab("key", new List());

Remove

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

LICENSE

About

💦 Data Storage Library for Android.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%