Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing Redis client options to command and pipeline functions #51

Closed
cabol opened this issue Mar 25, 2023 · 0 comments
Closed

Allow passing Redis client options to command and pipeline functions #51

cabol opened this issue Mar 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@cabol
Copy link
Owner

cabol commented Mar 25, 2023

Allow passing Redis client option to the extended cache functions like command and pipeline.

Currently, these functions look like this:

command(key \\ nil, name \\ __MODULE__, command)

command!(key \\ nil, name \\ __MODULE__, command)

pipeline(key \\ nil, name \\ __MODULE__, commands)

pipeline!(key \\ nil, name \\ __MODULE__, commands)

They don't admit extra options. Therefore, the idea is to make them like so:

command(command, opts \\ [])

command!(command, opts \\ [])

pipeline(commands, opts \\ [])

pipeline!(commands, opts \\ [])

Add add :key and :name to the supported options.

@cabol cabol added the enhancement New feature or request label Mar 25, 2023
@cabol cabol closed this as completed Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant