Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doriantaylor/p5-store-digest
Store::Digest provides an interface to a store of arbitrary data, keyed by cryptographic digest.
https://github.com/doriantaylor/p5-store-digest
Last synced: 24 days ago
JSON representation
Store::Digest provides an interface to a store of arbitrary data, keyed by cryptographic digest.
- Host: GitHub
- URL: https://github.com/doriantaylor/p5-store-digest
- Owner: doriantaylor
- License: apache-2.0
- Created: 2012-09-08T19:51:19.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-05-25T15:42:37.000Z (over 6 years ago)
- Last Synced: 2023-08-20T22:45:00.629Z (over 1 year ago)
- Language: Perl
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
NAME
Store::Digest - Store opaque data objects keyed on their cryptographic
digestsVERSION
Version 0.07SYNOPSIS
use Store::Digest;# initialize the store
my $store = Store::Digest->new(
driver => 'FileSystem',
# all other options pass through to the driver
dir => '/var/db/store-digest',
);# add an object
my $obj = $store->add(
content => $fh,
language => 'en',
mtime => DateTime->now,
);# if you want to get the object back
my $str = 'ni:///sha-256;IcnxQtEMlihv1wFHTMjkMprLO-9-ZXZD2lcsQLmQ1xA';
my $uri = URI->new($str);
my $obj = $store->get($uri);METHODS
This module will eventually act as a unifying interface for multiple
storage drivers, but there is currently only one implemented:
Store::Digest::Driver::FileSystem. Go see that.Note to users prior to this version (all two of you): The "control"
database that contains the store-wide metadata was for some stupid
reason a BerkeleyDB::Hash, and I have changed it to be a
BerkeleyDB::Btree. I have included a conversion routine in the
driver which *should* do the job transparently, but since it deletes
the old control database, you may run into trouble if you don't shut
down all processes attached to this database before upgrading.SEE ALSO
* Store::Digest::Driver::FileSystem* Store::Digest::Object
* URI::ni
*
AUTHOR
Dorian Taylor, ""BUGS
Please report any issues to
.SUPPORT
You can find documentation for this module with the perldoc command.perldoc Store::Digest
You can also look for information at:
* AnnoCPAN: Annotated CPAN documentation
* CPAN Ratings
* Search CPAN
LICENSE AND COPYRIGHT
Copyright 2012-2018 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 .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.