2.0/Modules/m redis

From AnopeWiki
Jump to: navigation, search
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
        }
}