Class: WurflDevice::Cache::Status

Inherits:
Entries
  • Object
show all
Defined in:
lib/wurfl_device/cache.rb

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

Returns:

  • (Boolean)


68
69
70
# File 'lib/wurfl_device/cache.rb', line 68

def self.initialized?
  get 'initialized'
end

.last_updatedObject



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

.versionObject



64
65
66
# File 'lib/wurfl_device/cache.rb', line 64

def self.version
  hkeys 'version'
end