Nile::Plugin::Redis - Redis database server plugin for the Nile framework.
# connect to Redis server my $redis = $app->plugin->redis; # store some data $redis->set("Name"=>"Ahmed Amin Elsheshtawy Gouda"); # get some data my $name = $redis->get("Name"); # check some data if exists if ($redis->exists("Name")) {say "Exists"} # delete some data $redis->del("Name");
Returns Redis object. All methods of the Redis module are supported.
Plugin settings in th config file under plugin section.
plugin
<plugin> <redis> <server>localhost:6379</server> <sock></sock> <password></password> <name></name> <reconnect>60</reconnect> <every>1000000</every> <encoding></encoding> </redis> </plugin>
This project is available on github at https://github.com/mewsoft/Nile.
Please visit the project's homepage at https://metacpan.org/release/Nile.
Source repository is at https://github.com/mewsoft/Nile.
See Nile for details about the complete framework.
Ahmed Amin Elsheshtawy, احمد امين الششتاوى <mewsoft@cpan.org> Website: http://www.mewsoft.com
Copyright (C) 2014-2015 by Dr. Ahmed Amin Elsheshtawy احمد امين الششتاوى mewsoft@cpan.org, support@mewsoft.com, https://github.com/mewsoft/Nile, http://www.mewsoft.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Nile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nile
CPAN shell
perl -MCPAN -e shell install Nile
For more information on module installation, please visit the detailed CPAN module installation guide.