tiny_storage 1.2.0 tiny_storage: ^1.2.0 copied to clipboard
This is a simple key-value store based on JSON file. Parallel processing of file I/O using `Isolate`.
import 'package:tiny_storage/tiny_storage.dart';
void main() async {
final storage = await TinyStorage.init('test.txt', path: './tmp');
storage.set('key_1', 'value_1');
storage.set('key_2', 2);
storage.set('key_3', [1, 2, 3]);
final ret = storage.get('key_1');
print(ret);
await storage.dispose();
}