anchor.diff:          type = types.int;
           default = 16;
           description = "Set the number of databases.";
  +      };
  +
  +      maxclients = mkOption {
  +        type = types.int;
  +        default = 10000;
  +        description = "Set the max number of connected clients at the same time.";
         };
   
         save = mkOption {
  
positive.code:     listsAsDuplicateKeys = true;
      mkKeyValue = generators.mkKeyValueDefault { inherit mkValueString; } " ";
    } cfg.settings);
  in
  {
    imports = [
      (mkRemovedOptionModule [ "services" "redis" "user" ] "The redis module now is hardcoded to the redis user.")
      (mkRemovedOptionModule [ "services" "redis" "dbpath" ] "The redis module now uses /var/lib/redis as data directory.")
  
negative.code: 
  let
    cfg = config.services.redis;
  
    ulimitNofile = cfg.maxclients + 32;
  
    mkValueString = value:
      if value == true then "yes"
  