Catmandu::Store::CHI - a CHI backed caching store
# From the command line $ catmandu export CHI --driver File --root_dir /data to YAML $ catmandu import JSON to CHI --driver File --root_dir /data < data.json # From perl use Catmandu; my $store = Catmandu->store('CHI', driver => 'File' , root_dir => '/data'); $store->bag->each(sub { my $item = shift; ... }); $store->bag->add({ test => 123 });
Create a new Catmandu::Store::CHI with a $chi_driver and optional parameters. When no driver is given then by default the 'Memory' driver will be used. See CHI for more documentation on possible drivers.
Create or retieve a bag with name $name. Returns a Catmandu::Bag.
CHI, Catmandu , Catmandu::Store , Catmandu::Bag
Patrick Hochstenbach, <patrick.hochstenbach at ugent.be>
<patrick.hochstenbach at ugent.be>
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Catmandu::Store::CHI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::Store::CHI
CPAN shell
perl -MCPAN -e shell install Catmandu::Store::CHI
For more information on module installation, please visit the detailed CPAN module installation guide.