Encodes the input key with SHA-256 hashing, to make sure there are no invalid or special path characters.
This class was created specifically to prevent the issue of identifiers being too long when storing data: https://github.com/CommunitySolidServer/CommunitySolidServer/issues/1013
This should eventually be replaced by a more structural approach once internal storage has been refactored and data migration from older versions and formats is supported.
Protected
Readonly
Deletes the value stored for the given key.
Key to delete.
If there was a value to delete.
An iterable of entries in the storage.
Returns the value stored for the given identifier. undefined if no value is stored.
undefined
Checks whether there is a value stored for the given key.
Sets the value for the given key.
Key to set/update.
Value to store.
The storage.
This function will be called on the input key and used as a new key when calling the source.
Original input key.
A new key to use with the source storage.
This function is used when calling entries() to revert the key generated by toNewKey().
entries()
toNewKey()
The original key.
Encodes the input key with SHA-256 hashing, to make sure there are no invalid or special path characters.
This class was created specifically to prevent the issue of identifiers being too long when storing data: https://github.com/CommunitySolidServer/CommunitySolidServer/issues/1013
This should eventually be replaced by a more structural approach once internal storage has been refactored and data migration from older versions and formats is supported.