RubyGems Navigation menu

simple_file_cache 0.0.1

SimpleFileCache writes a ruby object to a binary file so that it can be retrieved later from the disk rather than recomputed from scratch. It defines a single method #load_or_recompute that receives a file path and a block. If the file exists and is recent (last changed today), it returns the file contents read with Marshal#load. Otherwise, it executesthe block, saves its return value with Marshal#dump and returns the new data.

Gemfile:
=

安裝:
=

版本列表:

  1. 0.0.1 November 14, 2018 (5.0 KB)

Development 相依性套件 (2):

byebug >= 0
rspec ~> 3.0

擁有者:

作者:

  • Ricardo Jasinski

SHA 256 總和檢查碼:

=

總下載次數 1,995

這個版本 1,995

版本发布:

授權:

Ruby 版本需求: >= 0

相關連結: