Class: Takagi::Message::DeduplicationCache::CacheEntry
- Inherits:
-
Struct
- Object
- Struct
- Takagi::Message::DeduplicationCache::CacheEntry
- Defined in:
- lib/takagi/message/deduplication_cache.rb
Overview
Entry contains the cached response and metadata
Instance Attribute Summary collapse
-
#response_data ⇒ Object
Returns the value of attribute response_data.
-
#source_key ⇒ Object
Returns the value of attribute source_key.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
Instance Attribute Details
#response_data ⇒ Object
Returns the value of attribute response_data
16 17 18 |
# File 'lib/takagi/message/deduplication_cache.rb', line 16 def response_data @response_data end |
#source_key ⇒ Object
Returns the value of attribute source_key
16 17 18 |
# File 'lib/takagi/message/deduplication_cache.rb', line 16 def source_key @source_key end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
16 17 18 |
# File 'lib/takagi/message/deduplication_cache.rb', line 16 def @timestamp end |
Instance Method Details
#expired?(current_time) ⇒ Boolean
17 18 19 |
# File 'lib/takagi/message/deduplication_cache.rb', line 17 def expired?(current_time) current_time - > EXCHANGE_LIFETIME end |