Store::Digest::Driver - Driver role for Store::Digest
Version 0.01
Create a new store, or bind to an existing one.
my $obj = $driver->get('sha-256' => $digest); # or my $obj = $driver->get($uri); # a URI::ni object
Get an object from the store
Get metadata about the store itself
my $obj = $driver->add( content => $fh, language => 'en', mtime => $datetime, );
Add an object to the store
returns a metadata object
my $obj = $driver->remove('sha-256' => $digest); # $obj->content will be undef and $obj->dtime will be set
Remove an object from the store, leaving its metadata
my $ok = $driver->forget('sha-256' => $digest);
Forget about an object in addition to removing it. Ordinarily, removing an object will only delete the content and preserve the metadata.
List the objects in the store
Which cryptographic algorithm to be used as a key
Starting offset, beginning with 1
Ending offset, which should be equal to or larger than the starting offset.
Which field to use to sort the list
Whether or not to invert the list
Retrieve statistics on the store
Dorian Taylor, <dorian at cpan.org>
<dorian at cpan.org>
Please report any bugs or feature requests to bug-store-digest at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Store-Digest. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-store-digest at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Store::Digest::Driver
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Store-Digest
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Store-Digest
CPAN Ratings
http://cpanratings.perl.org/d/Store-Digest
Search CPAN
http://search.cpan.org/dist/Store-Digest/
Copyright 2012 Dorian Taylor.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
To install Store::Digest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Store::Digest
CPAN shell
perl -MCPAN -e shell install Store::Digest
For more information on module installation, please visit the detailed CPAN module installation guide.