Sha256: e4ebb7f2f87250542a4e15a0d19acef3a1f55f1cc9b35f25cb4f1f1c2ce64aac
Contents?: true
Size: 602 Bytes
Versions: 6
Compression:
Stored size: 602 Bytes
Contents
module Cachetastic # :nodoc: class Cache class StoreObject # :nodoc: attr_accessor :expires_at attr_accessor :key attr_accessor :value def initialize(key, value, expires_at) self.key = key self.value = value self.expires_at = expires_at end def expired? return Time.now > self.expires_at end def inspect "#<Cachetastic::Cache::StoreObject key='#{self.key}' expires_at='#{self.expires_at}' value='#{self.value}'>" end end # StoreObject end # Cache end # Cachetastic
Version data entries
6 entries across 6 versions & 1 rubygems