|
NAMETest::RedisDB - start redis-server for testingSYNOPSISuse Test::RedisDB; my $test_server = Test::RedisDB->new; my $redis = $test_server->redisdb_client; $redis->set('foo', 1); my $res = $redis->get('foo'); DESCRIPTIONThis module allows you to start an instance of redis-server for testing your modules that use RedisDB.METHODS$class->new(%options)start a new redis-server instance, return Test::RedisDB object tied to this instance. Accepts the following options:password server should require a password to connect $self->startstart the server. You only need to call this method if you stopped the server using the stop method$self->stopstop the server$self->hostreturn hostname or address, at the moment always 'localhost'$self->portreturn port number on which server accept connections$self->redisdb_client(%options)return a new RedisDB client object connected to the test server, %options passed to RedisDB constructor$self->urlreturn URL for the serverAUTHORPavel Shaydo, "<zwon at cpan.org>"LICENSE AND COPYRIGHTCopyright 2011-2016 Pavel Shaydo.This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License. See http://dev.perl.org/licenses/ for more information.
Visit the GSP FreeBSD Man Page Interface. |