Redis Data Types: Hash
Hash in Redis
Storage Characteristics
Hashes in Redi are used to store multiple unordered key-value pairs. They can store up to 232 - 1 entries (approximately 4 billion).
It's important to note that Redis' outer key-value structure is already a hash table (called the "outer hash"). The hash we're discussing here is an inner hash struc ...
Posted on Sun, 30 Aug 2026 16:25:58 +0000 by thepip3r
Redis Data Types: An In-depth Guide to String and Hash Structures
Before diving into Redis's five fundamental data structures, it's essential to understand some core concepts that will provide a solid foundation for the following content. These include Redis's global commands, internal data structure encoding mechanisms, and its single-threaded command processing approach.
Redis Global Commands
Keys Command
T ...
Posted on Sat, 15 Aug 2026 16:37:50 +0000 by psychomossel
Comprehensive Guide to String Operations and Algorithms
Strings are fundamental data structures that store sequences of characters. In C++, strings are zero-indexed and their length can be obtained using len = s.size(). Strings can also be implemented as character arrays with len = strlen(s).
Basic String Operations
Insretion
C++ strings support various insertion methods:
string s = "abcd" ...
Posted on Sat, 27 Jun 2026 17:47:12 +0000 by healthnut
Working with Hash Data Structures in Redis
Hash structures in Redis allow storage of key-value pairs where the value itself is a collection of field-value mappings, similar to dictionaries in Python or maps in Java.
Storing Data
Use HSET to insert field-value pairs into a hash:
127.0.0.1:6379> HSET users username john age empty location mars
(integer) 3
Retreiving Individual Values
...
Posted on Sat, 09 May 2026 12:47:24 +0000 by bobicles2