Skip to content

Commit a54a011

Browse files
committed
Enterprise-1.4.0
1 parent 5fff096 commit a54a011

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

CHANGELOG-enterprise.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
### Bug Fix
1010

11+
# 1.4.0 (11 Apr 2024)
12+
13+
- ObjectCache: add support for `redis_cluster: ...` backend
14+
1115
# 1.3.4 (18 Mar 2024)
1216

1317
- ObjectCache: use new `trace_with` API for instrumentation

guides/object_cache/redis.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,13 @@ maxmemory-policy allkeys-lfu
4444
```
4545

4646
Additionally, consider conditionally skipping the cache to prioritize your most critical GraphQL traffic.
47+
48+
## Redis Cluster
49+
50+
`ObjectCache` also supports Redis Cluster. To use, pass `redis_cluster:`:
51+
52+
```ruby
53+
use GraphQL::Enterprise::ObjectCache, redis_cluster: Redis::Cluster.new(...)
54+
```
55+
56+
Under the hood, it uses query fingerprints as [hash tags](https://redis.io/docs/latest/operate/oss_and_stack/reference/cluster-spec/#hash-tags) and each cached result has its own set of object metadata.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
d2152d80aee8cd1699c4e64e28329c51ddee38ea6ea318f89c6e9bc996fbd68d4db28831fcedb5583ba92d499852dd7fc8ca99583376eacd28f00c908fec8f28

0 commit comments

Comments
 (0)