Method: ActiveSupport::Cache::LibmemcachedStore::FetchWithRaceConditionTTLEntry#initialize
- Defined in:
- lib/active_support/cache/libmemcached_store.rb
#initialize(value, expires_in) ⇒ FetchWithRaceConditionTTLEntry
Returns a new instance of FetchWithRaceConditionTTLEntry.
29 30 31 32 |
# File 'lib/active_support/cache/libmemcached_store.rb', line 29 def initialize(value, expires_in) @value, @extended = value, false @expires_at = Time.now.to_i + expires_in end |