Class: BasicCache::TimeCacheItem

Inherits:
Struct
  • Object
show all
Defined in:
lib/caches/timecache.rb

Overview

Timecache item struct, timestamp and value

Instance Attribute Summary collapse

Instance Attribute Details

#stampObject

Returns the value of attribute stamp

Returns:

  • (Object)

    the current value of stamp



7
8
9
# File 'lib/caches/timecache.rb', line 7

def stamp
  @stamp
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



7
8
9
# File 'lib/caches/timecache.rb', line 7

def value
  @value
end