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

EXPIRE/DEL support #21

Open
IM-coding opened this issue Apr 17, 2023 · 3 comments
Open

EXPIRE/DEL support #21

IM-coding opened this issue Apr 17, 2023 · 3 comments

Comments

@IM-coding
Copy link

Hi! You have a great connector but lack EXPIRE support and/or DEL. Could we have one?

@jruaux
Copy link
Collaborator

jruaux commented May 8, 2023

Hi, yes that's something we can add to the sink connector. How do you foresee the usage for expire and del?

@IM-coding
Copy link
Author

Thank you, for your reply!

Having a separate sink connector with redis.type=EXPIRE would be nice - users could set global TTL for all messages in the topic.
But adding this as a parameter to a Kafka message/header/key would be perfect and it would add more flexibility.
For example, a Kafka message with a header like expire_ttl: 1800 will set a key with a value and expire this key after 1800 s

As for DEL:
I've noticed in the documentation that there is an option to delete List, Set, Sorted Set if the value of the Kafka message is null.
I think the simplest solution would be adding this feature to String, Hash, JSON, and TimeSeries if it is possible.

@rsibweza
Copy link

I have loved this connection plugin for redis. unfortunately it lacks the most important factor for an in memory cache...The expiry ttl setting. I have a project going live soon unfortunately I won't be able to implement the kafka pipeline using this plugin because of this ttl issue

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

No branches or pull requests

3 participants