Categories: None [Edit]

simple_file_cache

https://rubygems.org/gems/simple_file_cache
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.

Total

Ranking: 180,693 of 199,228
Downloads: 2,396

Daily

Ranking: 133,094 of 199,184
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName
291,048,421,257rspec
109495,131,390byebug

Owners

#GravatarHandle
1iconricardo-jasinski