NAME

Flux::Storage - interface to any flux storage.

VERSION

version 1.03

SYNOPSIS

$storage->write($line);
$storage->write_chunk(\@lines);

$stream = $storage->in($cursor_or_client_name);

DESCRIPTION

Flux::Storage is the role which every stream storage must implement.

Objects implementing this role can act as output streams, and they can also generate associated input stream with in method.

INTERFACE

in(...)

Construct an input stream for this storage.

Most storages are able to have several different input streams with different positions in the storage.

in method usually accepts either client's name (as plain string), or, in some cases, a more complicated cursor object which identifies an appropricate input stream.

AUTHOR

Vyacheslav Matyukhin <me@berekuk.ru>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Yandex LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.