Method: GraphQL::FragmentCache::MemoryStore#initialize
- Defined in:
- lib/graphql/fragment_cache/memory_store.rb
#initialize(expires_in: nil, **other) ⇒ MemoryStore
Returns a new instance of MemoryStore.
19 20 21 22 23 24 |
# File 'lib/graphql/fragment_cache/memory_store.rb', line 19 def initialize(expires_in: nil, **other) raise ArgumentError, "Unsupported options: #{other.keys.join(",")}" unless other.empty? @default_expires_in = expires_in @storage = {} end |