There's more...

Please consider that the memory allocated for query buffer and output buffer are calculated into used_memory_overhead returned by the INFO MEMORY command excluding the output buffer of the monitor client. Due to the fact that used_memory = used_memory_overhead + used_memory_dataset, these two kinds of buffer are also taken into account  by the used_memory metric.

Get Redis 4.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.