Flux::Storage::Role::ClientList - common methods for storages with named clients
version 1.03
@client_names = $storage->client_names; $in = $storage->stream($client_name); $storage->register_client($client_name); $storage->unregister_client($client_name); $storage->has_client($client_name);
Some storages are able to generate stream by client's name. This role guarantees that storage implements some common methods for listing and registering storage clients.
Get all storage client names as a plain list.
Register a new client in the storage.
Default implementation does nothing.
Unregister a client from the storage.
Check whether the storage has a client with given name.
Default implementation uses client_names(), but you can override it for the sake of performance.
client_names()
Vyacheslav Matyukhin <me@berekuk.ru>
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.
To install Flux, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Flux
CPAN shell
perl -MCPAN -e shell install Flux
For more information on module installation, please visit the detailed CPAN module installation guide.