{"repo":"shogo82148/Redis-Fast","free":true,"listed":false,"github":"https://github.com/shogo82148/Redis-Fast","clone":"git clone https://github.com/shogo82148/Redis-Fast.git","description":"fast perl binding for Redis database","language":"Perl","stars":26,"topics":["redis","perl","redis-database","amazon-elasticache"],"license":null,"category":"databases-storage","readme_excerpt":"NAME Redis::Fast - Perl binding for Redis database SYNOPSIS ## Defaults to $ENV{REDIS SERVER} or 127.0.0.1:6379 my $redis = Redis::Fast- new; my $redis = Redis::Fast- new(server = 'redis.example.com:8080'); ## Set the connection name (requires Redis 2.6.9) my $redis = Redis::Fast- new( server = 'redis.example.com:8080', name = 'my connection name', ); my $generation = 0; my $redis = Redis::Fast- new( server = 'redis.example.com:8080', name = sub { \"cache-$$-\".++$generation }, ); ## Use Sentinels, possibly with password my $redis = Redis::Fast- new( sentinels = [ '10.0.0.1:16379', '10.0.0.2:16379', ], service = 'mymaster', sentinels password = 'TheB1gS3CR3T', # optional ); ## Use UNIX domain socket my $redis = Redis::Fast- new(sock = '/path/to/socket'); ## Enable auto-reconnect ## Try to reconnect every 500ms up to 60 seconds until success ## Die if you can't after that my $redis = Redis::Fast- new(reconnect = 60, every = 500 000); ## Try each 100ms up to 2 seconds (every is in microseconds) my $redis = Redis::Fast- new(reconnect = 2, every = 100 000); ## Disable the automatic utf8 encoding = much more performance ## !!!! This will be the default after 2.000, see ENCODING below my $redis = Redis::Fast- new(encoding = undef); ## Use all the regular Redis commands, they all accept a list of ## arguments ## See http://redis.io/commands for full list $redis- get('key'); $redis- set('key' = 'value'); $redis- sort('list', 'DESC'); $redis- sort(qw{list LIMIT 0 5 ALPHA DESC}); ## Add ","default_branch":null,"files":null,"tree":[],"storefront":"/r/shogo82148","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shogo82148/Redis-Fast/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}