POE::Filter::Redis - A POE Filter for the Redis protocol
use POE::Filter::Redis; my $filter = POE::Filter::Redis->new(); my $stream = $filter->put( [ [ 'SET', 'mykey', 'myvalue' ] ] ); my $responses = $filter->get( [ "-NOT OK THIS TIME\x0D\x0A", "$6\x0D\x0Afoobar\x0D\x0A" ] );
It is a
client side implementation.
It should be POE::Filter::Stackable friendly if you like that sort of thing.
Creates a new POE::Filter::Redis object.
Takes an arrayref which contains lines of Redis protocol streams from a Redis server. Returns arrayref of arrayrefs, each being a complete response from the server.
Takes an arrayref of arrayrefs. Each arrayref should contain an individual Redis command and any additional parameters. Returns an arrayref of protocol encoded strings suitable for sending over the wire to a Redis server.
Returns any data remaining in a filter's input buffer
Makes a copy of the filter, and clears the copy's buffer.
Please see POE::Filter for documentation regarding the base interface.
Chris Williams <firstname.lastname@example.org>
Rocco Caputo <email@example.com>
This software is copyright (c) 2011 by Chris Williams and Rocco Caputo.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.