Class: N::Cluster::Clm
Overview
Cluster Last Modified Hash
Instance Attribute Summary
Attributes inherited from CHash
Instance Method Summary collapse
Methods inherited from CHash
#[]=, #cluster_sync, #initialize, #join, #old_set
Constructor Details
This class inherits a constructor from N::Cluster::CHash
Instance Method Details
#[](key) ⇒ Object
174 175 176 177 178 179 180 181 182 183 |
# File 'lib/nitro/cluster.rb', line 174 def [](key) @mon.synchronize { unless value = super puts "INIT #{key}" value = Time.now.to_i old_set(key, value) end return value } end |