Skip to content

isfaaghyth/Rak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e87aa5c Β· Oct 2, 2018

History

28 Commits
Oct 2, 2018
Oct 2, 2018
Oct 2, 2018
Jan 19, 2017
Oct 2, 2018
Jan 19, 2017
Jan 19, 2017
Jan 19, 2017
Oct 2, 2018
Jan 19, 2017
Jan 19, 2017
Jan 19, 2017
Jan 19, 2017
Oct 2, 2018
Jan 19, 2017

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