Using keys() function we can get all the keys and then to fetch the value of all the keys we have to call get() function in a loop and it will lead to read locks which degrades the performance in case there is huge number of keys.
Use case : Multiple users are connected to the persistent connection ( proxying to RDP ) and we want to update the activity of the user in the shared dict and periodic daemon will fetch the activity from the shared dict and update that details in the database.
If we could have got the value along with key then it would be great.