Class: N::Cluster::Clm

Inherits:
CHash show all
Defined in:
lib/nitro/cluster.rb

Overview

Cluster Last Modified Hash

Instance Attribute Summary

Attributes inherited from CHash

#cluster, #ldrb, #mon

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