Class: ProconBypassMan::OnMemoryCache::CacheValue

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/support/on_memory_cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

Parameters:

  • (Time)


4
5
6
# File 'lib/procon_bypass_man/support/on_memory_cache.rb', line 4

def expired_at
  @expired_at
end

#valueObject

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