Class: WurflDevice::Cache::Status
Class Method Summary
collapse
Methods inherited from Entries
build_cache_id, clear, del, entries, get, hget, hgetall, hkeys, hset, set
Class Method Details
.initialize! ⇒ Object
72
73
74
|
# File 'lib/wurfl_device/cache.rb', line 72
def self.initialize!
set 'initialized', 1
end
|
.initialized? ⇒ Boolean
68
69
70
|
# File 'lib/wurfl_device/cache.rb', line 68
def self.initialized?
get 'initialized'
end
|
.last_updated ⇒ Object
60
61
62
|
# File 'lib/wurfl_device/cache.rb', line 60
def self.last_updated
get('last_updated') || ''
end
|
.uninitialize! ⇒ Object
76
77
78
|
# File 'lib/wurfl_device/cache.rb', line 76
def self.uninitialize!
del 'initialized'
end
|
.version ⇒ Object
64
65
66
|
# File 'lib/wurfl_device/cache.rb', line 64
def self.version
hkeys 'version'
end
|