How does redis view the storage space of a db?

for example, how do I check the amount of storage space occupied by db6?


switch to DB6 (DB starts from 0 by default), and execute INFO MEMORY

127.0.0.0:6379> select 6
OK
127.0.0.0:6379[6]> INFO MEMORY 
Menu