Class: Rails::GraphQL::CacheKey
- Inherits:
-
Struct
- Object
- Struct
- Rails::GraphQL::CacheKey
- Defined in:
- lib/rails/graphql.rb
Overview
Helper class to produce a ActiveSupport-compatible versioned cache key
Instance Attribute Summary collapse
-
#cache_key ⇒ Object
Returns the value of attribute cache_key.
-
#cache_version ⇒ Object
Returns the value of attribute cache_version.
Instance Method Summary collapse
Instance Attribute Details
#cache_key ⇒ Object
Returns the value of attribute cache_key
64 65 66 |
# File 'lib/rails/graphql.rb', line 64 def cache_key @cache_key end |
#cache_version ⇒ Object
Returns the value of attribute cache_version
64 65 66 |
# File 'lib/rails/graphql.rb', line 64 def cache_version @cache_version end |
Instance Method Details
#inspect ⇒ Object
65 66 67 |
# File 'lib/rails/graphql.rb', line 65 def inspect cache_version ? +"#{cache_key}[#{cache_version}]" : cache_key end |