Removes all key/value pairs from the storage object.
Gets a copy of the value from the storage object.
Locks the storage object or waits until it can be locked. When a thread calls this method,
it becomes the only thread able to read or modify the storage object until it unlocks it.
This is a blocking method. See tryLock()
method for a non blocking method.
Removes an item from the storage object.
Create or update an item in the storage object.
Tries to lock the storage object. Returns true
in case of success and false otherwise.
This is a non blocking method. See lock()
method for a blocking method.
Removes a lock that was previously put on the storage object.
Gets the number of key/value pairs currently present in the storage object.