johanhelsing / bevy_pkv

Cross-platform (including wasm) persistent key value store plugin for rust games/apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a scope setting for avoiding conflicts in localstorage

johanhelsing opened this issue · comments

If the same protocol-domain-port triplet is used by multiple libraries or apps, the keys may conflict with each other. i.e. it's currently probably a bad idea to use generic names like "user".

Perhaps it would make sense to add a store-wide setting for adding a prefix or "name" to keys in order to prevents collisions