--- !ruby/object:Gem::Specification name: itrigga-file_cache version: !ruby/object:Gem::Version hash: 27 prerelease: false segments: - 0 - 1 - 0 version: 0.1.0 platform: ruby authors: - Al Davidson autorequire: bindir: bin cert_chain: [] date: 2011-10-03 00:00:00 +01:00 default_executable: dependencies: - !ruby/object:Gem::Dependency prerelease: false name: bundler version_requirements: &id001 !ruby/object:Gem::Requirement none: false requirements: - - ~> - !ruby/object:Gem::Version hash: 23 segments: - 1 - 0 - 0 version: 1.0.0 requirement: *id001 type: :development - !ruby/object:Gem::Dependency prerelease: false name: jeweler version_requirements: &id002 !ruby/object:Gem::Requirement none: false requirements: - - ~> - !ruby/object:Gem::Version hash: 7 segments: - 1 - 6 - 4 version: 1.6.4 requirement: *id002 type: :development - !ruby/object:Gem::Dependency prerelease: false name: rcov version_requirements: &id003 !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" requirement: *id003 type: :development - !ruby/object:Gem::Dependency prerelease: false name: rspec version_requirements: &id004 !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" requirement: *id004 type: :development description: |- A simple file-system-based cache wrapper. The main method is 'with_cache( :cache_key=>'something_unique', :timeout_seconds=>(an integer) ){ (...) }' If the given cache key exists and has not timed out, it will return the cached value If not, it will * yield to the given block * store the result of the given block in the cache with the given key * return the result of the given block Required params: * :cache_key=>'some unique string that is valid in a filename' Optional params: * :timeout_seconds => (an integer - default 3600) * :cache_dir => (an absolute path - defaults to RAILS_ROOT/tmp/cache if RAILS_ROOT is defined, otherwise /tmp/cache ) Example usage: @stats_json = Trigga::Cache::FileCache.with_cache(:cache_key=>'admin_stats.json', :timeout_seconds=>600){ /* some expensive remote API / slow IO call here /* } email: aldavidson@trigga.com executables: [] extensions: [] extra_rdoc_files: - LICENSE.txt - README.rdoc files: - Gemfile - LICENSE.txt - README.rdoc - Rakefile - VERSION - lib/itrigga/cache/itrigga-file_cache.rb - lib/itrigga/file_cache.rb - spec/file_cache_spec.rb - spec/spec_helper.rb - test/helper.rb - test/test_itrigga-file_cache.rb has_rdoc: true homepage: http://github.com/itrigga/itrigga-file_cache licenses: - MIT post_install_message: rdoc_options: [] require_paths: - lib - lib/itrigga - lib/itrigga required_ruby_version: !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" required_rubygems_version: !ruby/object:Gem::Requirement none: false requirements: - - ">=" - !ruby/object:Gem::Version hash: 3 segments: - 0 version: "0" requirements: [] rubyforge_project: rubygems_version: 1.3.7 signing_key: specification_version: 3 summary: A simple file-system-based cache wrapper. test_files: []