Class: ProconBypassMan::OnMemoryCache::CacheValue
- Inherits:
-
Object
- Object
- ProconBypassMan::OnMemoryCache::CacheValue
- Defined in:
- lib/procon_bypass_man/support/on_memory_cache.rb
Instance Attribute Summary collapse
- #expired_at ⇒ Object
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(expired_at:, value:) ⇒ CacheValue
constructor
A new instance of CacheValue.
Constructor Details
#initialize(expired_at:, value:) ⇒ CacheValue
Returns a new instance of CacheValue.
7 8 9 10 |
# File 'lib/procon_bypass_man/support/on_memory_cache.rb', line 7 def initialize(expired_at: , value: ) self.expired_at = expired_at self.value = value end |
Instance Attribute Details
#expired_at ⇒ Object
4 5 6 |
# File 'lib/procon_bypass_man/support/on_memory_cache.rb', line 4 def expired_at @expired_at end |
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/procon_bypass_man/support/on_memory_cache.rb', line 5 def value @value end |