Lazy initializes a proc attaching it to the current thread. Also allows a a timeout proc for execution when retrieving a stored object that hasn't been used a configurable number of seconds since the former request.
Add this line to your application's Gemfile:
gem 'lazy_timed_threadlocal'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lazy_timed_threadlocal
TODO: Write usage instructions here
- Fork it ( https://github.com/[my-github-username]/lazy_timed_threadlocal/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request