Skip to content
A simple Hash like collection with ttl
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
LICENSE
README
Rakefile
ttl.gemspec

README

== TTL

  a = TTL.new(1) # 1 second ttl
  a[:key] = "value"
  a[:key] # => "value"
  sleep(1.01) # wait .. wait .. wait
  a[:key] # => nil

== TODO

Everything
Not thread safe?

== AUTHORS

Emmanuel Oga

Something went wrong with that request. Please try again.