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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.