lib/graphql/cache/marshal.rb
def write(config)
        resolved = yield
        document = Deconstructor[resolved].perform

        cache.write(key, document, expires_in: expiry(config))
        resolved
      end
# Executes the resolution block and writes the result to cache
#
# @see GraphQL::Cache::Deconstruct#perform
# @param config [Hash] The middleware resolution config hash
Executes the resolution block and writes the result to cache
Executes the resolution block and writes the result to cache
def write(config)
        resolved = yield
        document = Deconstructor[resolved].perform
        cache.write(key, document, expires_in: expiry(config))
        resolved
      end
def write ( config ) resolved = yield document = Deconstructor [ resolved ] . perform cache . write ( key , document , expires_in : expiry ( config ) ) resolved end
Executes the resolution block and writes the result to cache
Executes the resolution block and writes the result to cache
config
The middleware resolution config hash
The middleware resolution config hash
see
None