<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hashes on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/hashes/</link><description>Recent content in Hashes on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 30 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/hashes/index.xml" rel="self" type="application/rss+xml"/><item><title>Redis Core Concepts: Hashes</title><link>https://ai-blog.noorshomelab.dev/redis-guide/redis-hashes/</link><pubDate>Fri, 07 Nov 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/redis-guide/redis-hashes/</guid><description>&lt;p&gt;While Redis Strings are great for simple key-value pairs, what if you need to store more complex, structured data, similar to a JavaScript object or a Python dictionary? That&amp;rsquo;s where &lt;strong&gt;Redis Hashes&lt;/strong&gt; come in.&lt;/p&gt;
&lt;p&gt;A Redis Hash is a map between string fields and string values. It&amp;rsquo;s ideal for representing objects, like a user profile, a product, or a configuration set, where each object has multiple attributes (fields) and their corresponding values.&lt;/p&gt;</description></item><item><title>Redis Velocity - Data Store Essentials</title><link>https://ai-blog.noorshomelab.dev/cut-the-chase/redis-velocity/</link><pubDate>Tue, 30 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/cut-the-chase/redis-velocity/</guid><description>&lt;h1 id="redis-velocity---data-store-essentials"&gt;Redis Velocity - Data Store Essentials&lt;/h1&gt;
&lt;p&gt;Redis is an open-source, in-memory data structure store, used as a database, cache, and message broker. Current stable release is Redis 7.2.x, with 7.4.x in release candidate as of late 2025.&lt;/p&gt;
&lt;h2 id="core-syntax"&gt;Core Syntax&lt;/h2&gt;
&lt;p&gt;Basic key-value operations for strings, the simplest data type.&lt;/p&gt;
&lt;div class="highlight"&gt;
&lt;pre class="language-redis-cli line-numbers" data-start="1" tabindex="0"&gt;&lt;code class="language-redis-cli" data-lang="redis-cli"&gt;SET user:1:name &amp;#34;Alice&amp;#34; EX 3600 NX // Set key &amp;#39;user:1:name&amp;#39; to &amp;#34;Alice&amp;#34;, expire in 3600 seconds, only if key does NOT exist.
GET user:1:name // Retrieve the value associated with &amp;#39;user:1:name&amp;#39;.
DEL user:1:name // Delete the key &amp;#39;user:1:name&amp;#39;.
INCR page:views // Increment the integer value of &amp;#39;page:views&amp;#39; by one. Creates key with 0 if non-existent.
DECRBY product:stock 5 // Decrement the integer value of &amp;#39;product:stock&amp;#39; by five.&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;h2 id="essential-patterns"&gt;Essential Patterns&lt;/h2&gt;
&lt;p&gt;Redis offers diverse data structures. Leverage them for efficient data modeling beyond simple strings.&lt;/p&gt;</description></item></channel></rss>