GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
CHI::Driver::Redis(3) User Contributed Perl Documentation CHI::Driver::Redis(3)

CHI::Driver::Redis - Redis driver for CHI

    use CHI;

    my $foo = CHI->new(
        driver => 'Redis',
        namespace => 'foo',
        server => '127.0.0.1:6379',
        debug => 0
    );

A CHI driver that uses "Redis" to store the data. Care has been taken to not have this module fail in fiery ways if the cache is unavailable. It is my hope that if it is failing and the cache is not required for your work, you can ignore its warnings.

Redis does not have namespaces. Therefore, we have to do some hoop-jumping.

Namespaces are tracked in a set named "chinamespaces". This is a list of all the namespaces the driver has seen.

Keys in a namespace are stored in a set that shares the name of the namespace. The actual value is stored as "$namespace||key".

This CHI driver uses Redis.pm. Redis.pm by default automatically encodes values to UTF-8. This driver sets the Redis encoding option to undef to disable automatic encoding.

"redis"
option for the constructed "Redis" object
"redis_options"
for hash of options to the "Redis" constructor

Other options, including "server", "debug", and "password" are passed to the "Redis" constructor.

Contains the underlying "Redis" object.

Cory G Watson, "<gphat at cpan.org>"

Ian Burrell, "<iburrell@cpan.org>"

Copyright 2009 Cold Hard Code, LLC.

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.

2016-01-22 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.