NAME
Zing::KeyVal - Key/Value Store
ABSTRACT
Generic Key/Value Store
SYNOPSIS
use Zing::KeyVal;
my $keyval = Zing::KeyVal->new(name => 'notes');
# $keyval->recv('today');
DESCRIPTION
This package provides a general-purpose key/value store abstraction.
INHERITS
This package inherits behaviors from:
LIBRARIES
This package uses type constraints from:
ATTRIBUTES
This package has the following attributes:
name
name(Str)
This attribute is read-only, accepts (Str)
values, and is optional.
METHODS
This package implements the following methods:
recv
recv(Str $key) : Maybe[HashRef]
The recv method fetches the data (if any) from the store.
- recv example #2
-
# given: synopsis $keyval->send('today', { status => 'happy' }); $keyval->recv('today');
send
send(Str $key, HashRef $value) : Str
The send method commits data to the store overwriting any existing data.
term
term(Str @keys) : Str
The term method generates a term (safe string) for the datastore.
AUTHOR
Al Newkirk, awncorp@cpan.org
LICENSE
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".