Paul LeoNerd Evans wrote:
Following the "resounding success" [i.e. nobody complained] of my
File::StatCache module sitting in the File-StatCache CPAN distribution,
I'd now like to follow it up with a second module. This module builds on
top of the first, implementing a read cache. Simple behaviour - give it
a filename, it returns the entire contents in one scalar.
I propose to call it File::SlurpCache [given as File::Cache and
Cache::File both already exist]. But where to put it?
* In its own distribution, again like File-StatCache, containing only
one .pm file
* In the same File-StatCache one, as they are likely to be used
together
What's the advantage of implementing your own read caching instead of
letting the OS handle it? Will this effectively cache twice, once
manually and once by the OS, and cost double memory?
Regards,
David