Difference between revisions of "2.0/Modules/m redis"

From AnopeWiki
Jump to: navigation, search
(Created page with "{{Language|2.0/Modules/m_redis}} {{Header|m_redis|Database|Anope}} == <div class="moduleheader">Description</div> == This module allows other modules to use Redis databases. ...")
(No difference)

Revision as of 15:53, 13 May 2014

Language

English

Section Database
Module m_redis
Author Anope

Description

This module allows other modules to use Redis databases.

name= 
Name of module
rdis {...} |
name= 
Name of the service DO NOT ALTER THIS
db= 
The database to use.
ip= 
IP Address of the server to connect to.
port 
Port to connect to the server with.

Default Configuration

/*
 * m_redis
 *
 * This module allows other modules to use Redis.
 */
#module
{
        name = "m_redis"
 
        /* A redis database */
        redis
        {
                /* The name of this service */
                name = "redis/main"
 
                /*
                 * The redis database to use. New connections default to 0.
                 */
                db = 0
 
                ip = "127.0.0.1"
                port = 6379
        }
}