jonataslaw / get_storage

A fast, extra light and synchronous key-value storage to Get framework
MIT License
342 stars 81 forks source link

How to get the number of all stored value? #105

Closed dbsxdbsx closed 2 years ago

dbsxdbsx commented 2 years ago

I use getStroage to store a list of item which users add it to favorite list, like so:

...
 _storage.write(key, list[index]);

Here I give each item an uuid as key. But when I tried to fetch them from storage, I need to know how many they are stored( ListBuilder need it), and I didn't find a method to fetch this property.

Or is this a bad implementation with get_storage?