# File lib/stores/cachetastic_stores_local_memory.rb, line 50 def initialize(key, value, expiry) self.key = key self.value = value begin self.expires_at = (Time.now + (expiry == 0 ? (31536000) : expiry)) # 31536000 = one year rescue RangeError => e self.expires_at = Time.at(expiry) end # puts "now: #{Time.now}" # puts "expiry: #{expiry}" # puts "expires_at: #{self.expires_at}" end