Skip to content

Commit

Permalink
Updating to a54a011.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Apr 11, 2024
1 parent 7f68eeb commit c5edace
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions object_cache/redis.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ <h1 class="guide-header">Redis Configuration</h1>
<h3 class="contents-header">Contents</h3>
<ol class='contents-list'><li class='contents-entry'><a href='#data-structure'>Data Structure
</a></li><li class='contents-entry'><a href='#memory-management'>Memory Management
</a></li><li class='contents-entry'><a href='#redis-cluster'>Redis Cluster
</a></li></ol>
</div>
</div>
Expand Down Expand Up @@ -193,6 +194,15 @@ <h2 id="memory-management">Memory Management</h2>

<p>Additionally, consider conditionally skipping the cache to prioritize your most critical GraphQL traffic.</p>

<h2 id="redis-cluster">Redis Cluster</h2>

<p><code class="language-plaintext highlighter-rouge">ObjectCache</code> also supports Redis Cluster. To use, pass <code class="language-plaintext highlighter-rouge">redis_cluster:</code>:</p>

<div class="language-ruby highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">use</span> <span class="no">GraphQL</span><span class="o">::</span><span class="no">Enterprise</span><span class="o">::</span><span class="no">ObjectCache</span><span class="p">,</span> <span class="ss">redis_cluster: </span><span class="no">Redis</span><span class="o">::</span><span class="no">Cluster</span><span class="p">.</span><span class="nf">new</span><span class="p">(</span><span class="o">...</span><span class="p">)</span>
</code></pre></div></div>

<p>Under the hood, it uses query fingerprints as <a href="https://redis.io/docs/latest/operate/oss_and_stack/reference/cluster-spec/#hash-tags">hash tags</a> and each cached result has its own set of object metadata.</p>

</div>
<p class="guide-footer">
Suggestion, improvement, or correction?
Expand Down
1 change: 1 addition & 0 deletions pro/checksums/graphql-enterprise-1.4.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d2152d80aee8cd1699c4e64e28329c51ddee38ea6ea318f89c6e9bc996fbd68d4db28831fcedb5583ba92d499852dd7fc8ca99583376eacd28f00c908fec8f28

0 comments on commit c5edace

Please sign in to comment.