Class: GraphQL::FragmentCache::MemoryStore::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/graphql/fragment_cache/memory_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expires_atObject

Returns the value of attribute expires_at

Returns:

  • (Object)

    the current value of expires_at



7
8
9
# File 'lib/graphql/fragment_cache/memory_store.rb', line 7

def expires_at
  @expires_at
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



7
8
9
# File 'lib/graphql/fragment_cache/memory_store.rb', line 7

def value
  @value
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/graphql/fragment_cache/memory_store.rb', line 8

def expired?
  expires_at && expires_at < Time.now
end