Skip to content

Commit

Permalink
enterprise-1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rmosolgo committed Jul 26, 2024
1 parent a502b6a commit af4bfae
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG-enterprise.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@

### Bug Fix

# 1.5.0 (26 Jul 2024)

- ObjectCache: Add Dalli backend for Memcached

# 1.4.2 (11 Jun 2024)

- ObjectCache: Add `Schema.fingerprint` hook and `context[:refresh_object_cache]`

# 1.4.1 (30 May 2024)

- ObjectCache: properly handle when object fingerprints are evicted but the cached result wasn't
Expand Down
18 changes: 18 additions & 0 deletions guides/object_cache/memcached.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: guide
doc_stub: false
search: true
enterprise: true
section: GraphQL Enterprise - Object Cache
title: Dalli Configuration
desc: Setting up the Memcached backend
index: 3
---

`GraphQL::Enterprise::ObjectCache` can also run with a Memcached backend via the [Dalli](https://github.com/petergoldstein/dalli) client gem.

Set it up by passing a `Dalli::Client` instance as `dalli: ...`, for example:

```ruby
use GraphQL::Enterprise::OperationStore, dalli: Dalli::Client.new(...)
```
2 changes: 1 addition & 1 deletion guides/object_cache/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ If there is no cached response or if the fingerprints don't match, then the inco
To get started with the object cache:

- {% internal_link "Prepare the schema", "/object_cache/schema_setup" %}
- {% internal_link "Set up a Redis backend", "/object_cache/redis" %}
- Set up a {% internal_link "Redis backend", "/object_cache/redis" %} or {% internal_link "Memcached backend", "/object_cache/memcached" %}
- {% internal_link "Configure types and fields for caching", "/object_cache/caching" %}
- Check out the {% internal_link "runtime considerations", "/object_cache/runtime_considerations" %}
2 changes: 1 addition & 1 deletion guides/object_cache/schema_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MySchema < GraphQL::Schema
end
```

See the {% internal_link "Redis guide", "/object_cache/redis" %} for details about configuring cache storage.
See the {% internal_link "Redis guide", "/object_cache/redis" %} or {% "Memcached guide", "/object_cache/memcached" %} for details about configuring cache storage.

Additionally, it accepts some options for customizing how introspection is cached, see {% internal_link "Caching Introspection", "/object_cache/caching#caching-introspection" %}

Expand Down
1 change: 1 addition & 0 deletions guides/pro/checksums/graphql-enterprise-1.5.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
753347081830d3007f568b04007cb401353130f3964ed5d75a65898b1751f88b47d571e43357e09173b6ba10ec954c946fe74adcf64b29a5fa799c50ec704a7a

0 comments on commit af4bfae

Please sign in to comment.