← Volver al índice de módulos

ndb_redis

This module provides a connector to interact with REDIS NoSQL Database from configuration file. You can read more about REDIS at http://redis.io.
🛠️ Utilidades y Varios Kamailio 6.1 22 parámetros 8 funciones

Descripción general

This module provides a connector to interact with REDIS NoSQL Database from configuration file. You can read more about REDIS at http://redis.io. It can connect to many REDIS servers and store the results in different containers.

Documentación oficial: https://www.kamailio.org/docs/modules/stable/modules/ndb_redis.html
Código fuente: https://github.com/kamailio/kamailio/tree/master/src/modules/ndb_redis

Parámetros de configuración

ParámetroTipoDescripción
server str 3.2. init_without_redis (integer) 3.3. connect_timeout (int) 3.4. cmd_timeout (int) 3.5. cluster (integer) 3.6. allowed_timeouts (integer) 3.7. disable_time (integer) 3.8. flush_on_reconnect (integer)
init_without_redis integer 3.3. connect_timeout (int) 3.4. cmd_timeout (int) 3.5. cluster (integer) 3.6. allowed_timeouts (integer) 3.7. disable_time (integer) 3.8. flush_on_reconnect (integer) 3.9. allow_dynamic_nodes (integer
connect_timeout int 3.4. cmd_timeout (int) 3.5. cluster (integer) 3.6. allowed_timeouts (integer) 3.7. disable_time (integer) 3.8. flush_on_reconnect (integer) 3.9. allow_dynamic_nodes (integer) 3.10. debug (integer) 3.1
cmd_timeout int 3.5. cluster (integer) 3.6. allowed_timeouts (integer) 3.7. disable_time (integer) 3.8. flush_on_reconnect (integer) 3.9. allow_dynamic_nodes (integer) 3.10. debug (integer) 3.11. ca_path (string)
cluster integer 3.6. allowed_timeouts (integer) 3.7. disable_time (integer) 3.8. flush_on_reconnect (integer) 3.9. allow_dynamic_nodes (integer) 3.10. debug (integer) 3.11. ca_path (string)
allowed_timeouts integer 3.7. disable_time (integer) 3.8. flush_on_reconnect (integer) 3.9. allow_dynamic_nodes (integer) 3.10. debug (integer) 3.11. ca_path (string)
disable_time integer 3.8. flush_on_reconnect (integer) 3.9. allow_dynamic_nodes (integer) 3.10. debug (integer) 3.11. ca_path (string)
flush_on_reconnect integer 3.9. allow_dynamic_nodes (integer) 3.10. debug (integer) 3.11. ca_path (string)
allow_dynamic_nodes integer 3.10. debug (integer) 3.11. ca_path (string)
debug integer 3.11. ca_path (string)
ca_path string 3.1. server (str)
server str Specify the details to connect to REDIS server. It takes a list of attribute=value separated by semicolon, the attributes can be: * name - is a generic identifier to be used with module functions. * u
init_without_redis integer If set to 1, the module will correctly initialize even if redis is not available at start up.
connect_timeout int The timeout when connecting to the redis server
cmd_timeout int The timeout for each query to the redis server. If the redis server does not reply within the timeout value, the command will fail and kamailio will continue executing the cfg file.
cluster integer If set to 1, the module will connect to servers indicated in the "MOVED" reply.
allowed_timeouts integer If this is set to a non-negative value, it sets the number of consecutive REDIS commands that can fail before temporarily disabling the REDIS server. This is similar to rtpengine_disable_tout paramete
disable_time integer If allowed_timeouts is set to a non negative value this determines the number of seconds the REDIS server will be disabled
flush_on_reconnect integer If this is set to a non zero value, a "FLUSHALL" command is issued after reconnecting to a REDIS server, to clear the entire database.
allow_dynamic_nodes integer If set to 1, the module will connect to servers indicated in the "MOVED" reply, even if they are not specified at startup.
debug integer Set the verbosity level for some of the log messages. It has to be a log level value.
ca_path string Sets the path where Certificates Authorities certs for the REDIS server certificate are stored.

Funciones exportadas

redis_cmd(srvname, command, ..., replyid)

4.2. redis_pipe_cmd(srvname, command, ..., replyid) 4.3. redis_execute(srvname) 4.4. redis_free(replyid)

redis_pipe_cmd(srvname, command, ..., replyid)

4.3. redis_execute(srvname) 4.4. redis_free(replyid)

redis_execute(srvname)

4.4. redis_free(replyid)

redis_free(replyid)

4.1. redis_cmd(srvname, command, ..., replyid)

redis_cmd(srvname, command, ..., replyid)

Send a command to REDIS server identified by srvname. The reply will be stored in a local container identified by replyid. All the parameters can be strings with pseudo-variables that are evaluated at runtime.

redis_pipe_cmd(srvname, command, ..., replyid)

Add a command to be sent to REDIS server identified by srvname. All the commands will be stored in a buffer until a call to redis_execute is made. When calling redis_execute the stored commands are sent using the pipelining functionality of redis. Th

redis_execute(srvname)

Sends commands to REDIS server identified by srvname. Commands are added with redis_pipe_cmd function, and will be stored for an existing REDIS server. When this function is called all the commands will be sent in a single message to the REDIS server

redis_free(replyid)

Frees data in a previous reply from memory. After this function call, accessing to a freed replyid returns null value.

Autores y contribuidores

Daniel-Constantin Mierla <miconda@gmail.com>Vicente Hernando <vhernando@systemonenoc.com>Morten Isaksen <misak@uni-tel.dk>Carsten Bock <carsten@ng-voice.com>Joel Centelles Martin <joel_centellesmartin@baxter.com>

Copyright © 2011 asipto.com
Copyright © 2012 www.systemonenoc.com
Copyright © 2017 ng-voice GmbH

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj