Skip to content

feat: Add flexible configuration options to redis-server#20

Open
dobesv wants to merge 1 commit intoBrandonZacharie:developfrom
dobesv:feature/redis-server-options
Open

feat: Add flexible configuration options to redis-server#20
dobesv wants to merge 1 commit intoBrandonZacharie:developfrom
dobesv:feature/redis-server-options

Conversation

@dobesv
Copy link

@dobesv dobesv commented Jul 19, 2025

  • Add the ability to disable persistence
  • Don't throw away port/replicaof options when using a config file

Also a couple fixes to get the tests working with a recent version of redis-server:

  • Update it to also monitor stderr output as it seems to be putting interesting messages in there
  • Handle error messages that don't match the regular expression
  • Update terminology in the test for SLAVE -> REPLICA

@dobesv dobesv force-pushed the feature/redis-server-options branch 2 times, most recently from 1770432 to 7405306 Compare July 19, 2025 00:58
This commit introduces several new features to the `redis-server` wrapper:

- **Pass `part` and `replicaof` with config file:** When a configuration file is provided, the `part` and `replicaof` options can now be passed as additional command-line arguments to `redis-server`.
- **Disable persistence:** Persistence can be disabled by providing `save: ""` in the server options, which passes `--save ""` to `redis-server`.
- **Arbitrary command-line arguments:** A new `args` option allows passing an array of additional arguments to `redis-server`.
- **TypeScript declarations:** A `index.d.ts` file has been added to provide TypeScript support.
- **Add `types` field to `package.json`:** The `types` field has been added to `package.json` to point to the new `index.d.ts` file.
- **Add JSDoc comments to `index.d.ts`:** JSDoc comments have been added to the TypeScript declaration file to improve documentation.
@dobesv dobesv force-pushed the feature/redis-server-options branch from 7405306 to 7bbbe9d Compare July 19, 2025 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant