NAME

Zing::Data - Process Data

ABSTRACT

Process Key/Val Data Store

SYNOPSIS

use Zing::Data;

my $data = Zing::Data->new(name => rand);

# $data->recv;

DESCRIPTION

This package provides a process-specific key/value store for arbitrary data.

INHERITS

This package inherits behaviors from:

Zing::KeyVal

LIBRARIES

This package uses type constraints from:

Zing::Types

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() : Maybe[HashRef]

The recv method fetches the data (if any) from the store.

recv example #1
# given: synopsis

$data->recv;
recv example #2
# given: synopsis

$data->send({ status => 'works' });

$data->recv;

send

send(HashRef $value) : Str

The send method commits data to the store overwriting any existing data.

send example #1
# given: synopsis

$data->send({ status => 'works' });
send example #2
# given: synopsis

$data->drop;

$data->send({ status => 'works' });

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".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues