Skip to content

isfaaghyth/Rak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 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

implementation 'com.github.isfaaghyth:Rak:2.0'

Starting

you must be initialize 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", "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