diff --git a/CHANGELOG-enterprise.md b/CHANGELOG-enterprise.md index 459001be5e..bb8b95123f 100644 --- a/CHANGELOG-enterprise.md +++ b/CHANGELOG-enterprise.md @@ -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 diff --git a/guides/object_cache/memcached.md b/guides/object_cache/memcached.md new file mode 100644 index 0000000000..7ab0b9af26 --- /dev/null +++ b/guides/object_cache/memcached.md @@ -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(...) +``` diff --git a/guides/object_cache/overview.md b/guides/object_cache/overview.md index 3216e1902f..534da7565a 100644 --- a/guides/object_cache/overview.md +++ b/guides/object_cache/overview.md @@ -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" %} diff --git a/guides/object_cache/schema_setup.md b/guides/object_cache/schema_setup.md index cd5f39536f..41cf243d45 100644 --- a/guides/object_cache/schema_setup.md +++ b/guides/object_cache/schema_setup.md @@ -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" %} diff --git a/guides/pro/checksums/graphql-enterprise-1.5.0.txt b/guides/pro/checksums/graphql-enterprise-1.5.0.txt new file mode 100644 index 0000000000..d286673b9f --- /dev/null +++ b/guides/pro/checksums/graphql-enterprise-1.5.0.txt @@ -0,0 +1 @@ +753347081830d3007f568b04007cb401353130f3964ed5d75a65898b1751f88b47d571e43357e09173b6ba10ec954c946fe74adcf64b29a5fa799c50ec704a7a