A very simple wrapper to handle locked storage of items.
This crate is still very much in flux, and things might change a lot.
We do use it in production for one of our games, so it should be good enough.
For Examples check oml-storage-examples.
- Considering merging this and the examples into a single workspace.
- Considering adding an explicit StorageItemId trait, and include some default implementations.
- Added StorageId trait, and some implementations.
- Refer to STORAGE_ID_MIGRATION.md for more information.
- Added lock_new, which will return AlreadyExists if the item already exists.
- Only implemented for DiskStorage for now.
- Added StorageId trait!
metadata_highest_seen_id returns an OptionITEM::ID now, which will be None if we haven't seen any Id yet.
- You will need to implement
make_id
andgenerate_next_id
for you Items! - Consider extra careful testing when using anything but String for ITEM::ID