Method: InstantCache::Counter#get

Defined in:
lib/instantcache.rb

#getObject

Description

Fetch the cached value through the superclass, and convert it to integer. (Raw values get stored as strings, since they’re unmarshalled.)

Arguments

None.

Exceptions

InstantCache::Destroyed

Cache value instance has been destroyed and is no longer usable. The value in the cache is unaffected. (From Blob#get)



911
912
913
# File 'lib/instantcache.rb', line 911

def get
  return super.to_i
end