Presently Redis does not provide any command which can provide the key type distribution/count of the present keys. This can be useful for analytics purposes and for generating summary of the keyspace. The KEYS * command and the SCAN command provides the keys (also allows filtering using the type) but they does not provide any aggregation in terms of key type count which can provide us with further insights into the distribution of the keys among the various types

The expected command can provide an output something like this:

string:4
hash:2

and so on.