BETAmodules.com is in beta — open to partnerships & joint ventures.Build with us

simple_file_cache

v0.0.1RubyGems· Ruby

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.

The verdict
Abandoned. Last published 7 years ago. No recent activity — look for a maintained alternative.
No recent activity — look for a maintained alternative.
Live from the RubyGems registry · derived rules, not AI
How it scores
MaintenanceAbandoned
PopularityNiche
SecurityClean
LicenseUnknown
DepsZero deps
Maintenance
Last published 7 years ago.
Popularity
6 downloads / week
Security
No known advisories for this version (OSV).
License
No license declared.
Dependencies
No runtime dependencies
Recent releases
  • 0.0.17 years ago
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. (Ruby / RubyGems) · Modules