• Nick Chun's avatar
    Module Configurations (#10285) · bda9d74d
    Nick Chun authored
    This feature adds the ability to add four different types (Bool, Numeric,
    String, Enum) of configurations to a module to be accessed via the redis
    config file, and the CONFIG command.
    
    **Configuration Names**:
    
    We impose a restriction that a module configuration always starts with the
    module name and contains a '.' followed by the config name. If a module passes
    "config1" as the name to a register function, it will be registered as MODULENAME.config1.
    
    **Configuration Persistence**:
    
    Module Configurations exist only as long as a module is loaded. If a module is
    unloaded, the configurations are removed.
    There is now also a minimal core API for removal of standardConfig objects
    from configs by name.
    
    **Get and Set Callbacks**:
    
    Storage of config values is owned by the module that registers them, and provides
    callbacks for Redis to access and manipulate the values.
    This is exposed through a GET and SET callback.
    
    The get callback returns a typed value of ...
    bda9d74d
moduleconfigstwo.c 1.27 KB