README.md in rufus-lru-1.0.4 vs README.md in rufus-lru-1.0.5

- old
+ new

@@ -15,20 +15,29 @@ Once the maxsize is reached, the hash will discard the element that was the least recently used (hence LRU). require 'rubygems' - require 'rufus/lru' + require 'rufus-lru' h = Rufus::Lru::Hash.new(3) 5.times { |i| h[i] = "a" * i } puts h.inspect # >> {2=>"aa", 3=>"aaa", 4=>"aaaa"} h[:newer] = 'b' puts h.inspect # >> {:newer=>"b", 3=>"aaa", 4=>"aaaa"} + +Rufus::Lru::Hash isn't thread-safe, if you need something that is, use Rufus::Lru::SynchronizedHash + + require 'rubygems' + require 'rufus-lru' + + h = Rufus::Lru::SyncrhonizedHash.new(3) + + # ... ## dependencies None.