isar_key_value 0.2.1 copy "isar_key_value: ^0.2.1" to clipboard
isar_key_value: ^0.2.1 copied to clipboard

A super fast key value store built on top of the isar database.

Isar Key Value #

A key value store built on top of the Isar database.

Usage #

First create a store:

final store = IsarKeyValue();

Then use the store using simple set and get interface. Once a value is set, it can be retrieved using either the key or the id that is returned from the set method.

final id = await store.set('key', 1);
final valueByKey = await store.get('key');
final valueById = await store.getById('key');

You can also use types if you like:

final id = await store.set<int>('key', 1);
final valueByKey = await store.get<int>('key');
final valueById = await store.getById<int>('key');

Additional information #

Feel free to report any bugs or add improvements on IsarKeyValue Github.

2
likes
140
pub points
72%
popularity

Publisher

verified publishermuha.dev

A super fast key value store built on top of the isar database.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, isar, isar_flutter_libs

More

Packages that depend on isar_key_value