Zing::KeyVal - Key/Value Store
Generic Key/Value Store
use Zing::KeyVal; my $keyval = Zing::KeyVal->new(name => 'notes'); # $keyval->recv;
This package provides a general-purpose key/value store abstraction.
This package inherits behaviors from:
Zing::Repo
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 optional.
(Str)
This package implements the following methods:
poll() : Poll
The poll method returns a Zing::Poll object which can be used to perform a blocking-fetch from the store.
# given: synopsis $keyval->poll;
recv() : Maybe[HashRef]
The recv method fetches the data (if any) from the store.
# given: synopsis $keyval->recv;
# given: synopsis $keyval->send({ status => 'happy' }); $keyval->recv;
send(HashRef $value) : Str
The send method commits data to the store overwriting any existing data.
# given: synopsis $keyval->send({ status => 'happy' });
# given: synopsis $keyval->drop; $keyval->send({ status => 'happy' });
term() : Str
The term method generates a term (safe string) for the datastore.
# given: synopsis $keyval->term;
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.