NAME
Configd::Language::redis - redis.conf, which has no conf.d and a handful of directives you say more than once.
VERSION
version 0.002
SYNOPSIS
use Configd();
Configd->adopt('redis');
Configd->build('redis');
DESCRIPTION
Redis has an include directive, which is not the same thing as a conf.d: the included file has to be named from the file doing the including, so adding one still means editing redis.conf. Include order also decides precedence in a way that surprises people -- a directive in the main file after an include wins over the included one.
So redis.conf becomes generated, and a fragment is a file rather than a file plus an edit.
NAME
Configd::Language::redis - redis.conf, which has no conf.d and a handful of directives you say more than once.
REPEATED DIRECTIVES
Most of redis.conf is one value per directive: a second maxmemory replaces the first. A few are not, and mean every occurrence:
save-- one line per snapshot point,save 900 1andsave 300 10being two conditions rather than one overriding the other.client-output-buffer-limit-- one line per client class.rename-command,module,include,bindwhen written as several lines.
Those are matched on everything they say, so two fragments both asking for save 900 1 get one line and two asking for different snapshot points get both. That is what lets a fragment be written without checking whether somebody else already asked for the same thing.
METHODS
files()
/etc/redis/redis.conf, 0640 root:redis if it has to be created.
units()
redis-server.service.
repeats($key)
True for the directives listed above, each occurrence of which means something of its own.
SEE ALSO
Please see those modules/websites for more information related to this module.
BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/teodesian/perl-configd/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHORS
Current Maintainers:
George S. Baugh <george@troglodyne.net>
COPYRIGHT AND LICENSE
Copyright (c) 2026 Troglodyne LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.