Module: GraphQL::FragmentCache::Cacher
- Defined in:
- lib/graphql/fragment_cache/cacher.rb
Overview
Saves resolved fragment values to cache store
Class Method Summary collapse
Class Method Details
.call(query) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/graphql/fragment_cache/cacher.rb', line 33 def call(query) return unless query.context.fragments? if FragmentCache.cache_store.respond_to?(:write_multi) batched_persist(query) else persist(query) end end |