perks library
Classes
- PerksAdapter
-
Adapters are responsible for handling all the processed data.
Often times, it is writing to a disk, or a similar operating.
PerksAdapter implements
read
andwrite
operation but are asynchronous. -
PerksBox<
T extends PerksAdapter> - Boxes provide an abstraction over adapters and add additional functionalities. PerksBox provides an abstraction over PerksAdapter and all the operation are asynchronous.
- PerksFileAdapter
- PerksFileAdapter uses a file to store all the data.
- PerksFileSyncAdapter
- PerksFileSyncAdapter is same as PerksFileAdapter but everything is synchronous.
- PerksMemoryAdapter
- PerksMemoryAdapter uses memory to store all the data.
-
PerksNameValueBox<
T> - PerksNameValueBox is a Key-Value or Name-Value paired database. Everything is stored as json internally.
- PerksNameValueMapUtils
-
PerksNameValueSyncBox<
T> - PerksNameValueSyncBox is same as PerksNameValueBox but everything is synchronous.
-
PerksStringBox<
T extends PerksAdapter> - PerksStringBox provides basic functionality of storing texts.
-
PerksStringSyncBox<
T extends PerksSyncAdapter> - PerksStringSyncBox is same as PerksStringBox but everything is synchronous.
- PerksSyncAdapter
-
PerksSyncAdapter implements
read
andwrite
operation but are synchronous. -
PerksSyncBox<
T extends PerksSyncAdapter> - PerksSyncBox provides an abstraction over PerksSyncAdapter and all the operation are synchronous.
Typedefs
-
PerksNameValueMap<
T> = Map< String, T> -
PerksNameValueSyncTransactionFn<
T> = PerksNameValueMap< T> Function(PerksNameValueMap<T> data) -
PerksNameValueTransactionFn<
T> = Future< PerksNameValueMap< Function(PerksNameValueMap<T> >T> data)