This has to have been a problem someone has solved before ... I just can't find one on CPAN.
The concept is really quite simple. I want to be able to tell a repository object to handle a file, or a set of files. And then I want to retrieve it back - whether that's the same process or not. The repository location should be relatively opaque - today I may want it in ~/repository, tomorrow in a relational database, next week sitting on an FTP site, or maybe read-only from an HTTP site. Who knows. Much like how one might store their CGI::Sessions - today in /tmp, tomorrow in a Berkeley DB, next week in MySQL or DB2 or Oracle (well, if there were a CGI::Session::Oracle you could...). All you have to do is swap out the underlying driver, and you're using the new data store.
This is all probably a bit much for someone to whip up while on PM. That I'm ok with. I'm not looking for someone to send reams of code :-). I'm just trying to see if anything is already out there doing something like this. If not, then we'll have to do it ourselves, and I'll try to convince my manager to let me put it on CPAN. But, of course, if there's something we can just use, well, that's what perl and CPAN are for, isn't it?
In reply to Generic repository of files by Tanktalus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |