Module: CachingFileStore
- Defined in:
- lib/simple_file_store/caching_file_store.rb
Overview
This adds a transparent file caching layer.
Behavior: when neither file_name nor content are provided, the generate_content() method is called and the output loaded into file (and thus, the file autosaved).
Requirements: a generate_content() method.
TODO: Implement an easy way to select the caching method vs. use the current convention. TODO: imlpement some hooks in base class, so that redefining methods should not be necessary.