tosh has asked for the wisdom of the Perl Monks concerning the following question:
I've been looking for some kind of vanilla cache management modules or methods but keep coming up with RAM cache or template cache or squirrel cache.
I'd love to not reinvent the wheel so if anybody knows of anything along these lines I would love to find out!!
Thanks!
UPDATE WITH ANSWER
In case anyone is looking for the same thing in the future here is the solution I have come up with using Cache::SizeAwareFileCache
::PUT FILE:: IF filesize > MAX_S3_SIZE SAVE file locally ELSE SAVE file in SizeAwareFileCache SAVE file to S3 ::GET FILE:: IF file in SizeAwareFileCache SEND file ELSE SEND user to get file from S3 GET file from S3 and put into SizeAwareFileCache
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File caching for external storage
by roboticus (Chancellor) on Nov 28, 2007 at 13:08 UTC | |
|
Re: File caching for external storage
by KurtSchwind (Chaplain) on Nov 28, 2007 at 14:21 UTC | |
by tcf03 (Deacon) on Nov 28, 2007 at 14:48 UTC | |
by tosh (Scribe) on Nov 28, 2007 at 16:46 UTC | |
by tuxz0r (Pilgrim) on Nov 28, 2007 at 17:02 UTC | |
by tcf03 (Deacon) on Nov 28, 2007 at 18:01 UTC | |
by tosh (Scribe) on Nov 29, 2007 at 14:21 UTC |