As the redis-memory-for-key will call dump command of the redis
For large key, the dump command will block redis as it's Time complexity. So this command is very dangerous for production environment.
Time complexity: O(1) to access the key and additional O(NM) to serialized it, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1M) where M is small, so simply O(1).
As the redis-memory-for-key will call dump command of the redis
For large key, the dump command will block redis as it's Time complexity. So this command is very dangerous for production environment.