Object Encoding

Difficulty: Advanced

Question

How do you check the internal memory encoding of a specific key?

Answer

Use `OBJECT ENCODING <key>` (e.g., it might return 'ziplist' for a small hash).

Concepts covered

Memory, Internal Optimization