Zing::Repo - Generic Store
Generic Store Abstraction
use Zing::Repo; my $repo = Zing::Repo->new(name => 'text'); # $repo->recv;
This package provides a general-purpose data storage abstraction.
This package uses type constraints from:
Zing::Types
This package has the following attributes:
name(Str)
This attribute is read-only, accepts (Str) values, and is required.
(Str)
store(Store)
This attribute is read-only, accepts (Store) values, and is optional.
(Store)
This package implements the following methods:
drop() : Int
The drop method returns truthy if the data was removed from the store.
# given: synopsis $repo->drop('text-1');
search() : Search
The search method returns a Zing::Search object based on the current repo or Zing::Repo derived object.
# given: synopsis my $search = $repo->search;
term() : Str
The term method generates a term (safe string) for the datastore.
# given: synopsis my $term = $repo->term;
test() : Int
The test method returns truthy if the specific key (or datastore) exists.
# given: synopsis $repo->test;
# given: synopsis $repo->store->send($repo->term, { test => time }); $repo->test;
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Zing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zing
CPAN shell
perl -MCPAN -e shell install Zing
For more information on module installation, please visit the detailed CPAN module installation guide.