#!/usr/bin/env perl

use strict;
use warnings;

use lib 'definitions';

use Zing::Store;

=pod explain

- zing-repo is the key/val and pub/sub data stores superclass
- it uses Zing/Store operations to perform its operations
- you shouldn't use it directly, but instead, use it to build other abstractions

=cut

my $s = Zing::Store->new(name => 'system');

warn 'repo send to state', ' ', $s->send('state', {created => time});
warn 'repo recv from state', ' ', $s->recv('state')->{created};
warn 'repo state term', ' ', $s->term('state');
warn 'repo actions push', ' ', $s->push('actions', {created => time});
warn 'repo actions pull', ' ', $s->pull('actions')->{created};
warn 'repo actions size', ' ', $s->size('actions');

$s->drop('state');
$s->drop('actions');
