und3f / mojox-redis

asynchronous Redis client based on Mojo
https://metacpan.org/pod/MojoX::Redis
Artistic License 2.0
10 stars 2 forks source link

missing ioloop replacement in mojolicious examples #3

Closed rbucker closed 12 years ago

rbucker commented 12 years ago

The examples in the DOC are incomplete. as-is they will not work with mojolocious. I finally found the missing piece.

In you mojolicious application you have to replace the default MojoX ioloop instance with the Mojolicious instance.

my $redis = MojoX::Redis->new(server => '127.0.0.1:6379', ioloop => Mojo::IOLoop->new);
und3f commented 12 years ago

Good day.

Docs are complete and designed to be run in a clean environment (just run code of SYNOPSIS section and you will see).

But thanks for getting my attention to this problem, I'll add documentation that will help to use MojoX::Redis in a Mojolicious environment.

und3f commented 12 years ago

Fixed DOC and Wiki page, thanks for report.

rbucker commented 12 years ago

based on your reply to my blog we really need more Mojolicious working examples. Thanks for the update. I look forward to checking it out.

*

Richard Bucker *

On Wed, Nov 2, 2011 at 5:23 PM, Sergey Zasenko < reply@reply.github.com>wrote:

Fixed DOC and Wiki page, thanks for report.

Reply to this email directly or view it on GitHub: https://github.com/und3f/mojox-redis/issues/3#issuecomment-2609913