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

Support Redis PubSub #6

Open
jcustenborder opened this issue Aug 2, 2018 · 2 comments
Open

Support Redis PubSub #6

jcustenborder opened this issue Aug 2, 2018 · 2 comments
Assignees

Comments

@jcustenborder
Copy link
Owner

No description provided.

@Bradleywboggs
Copy link

Bradleywboggs commented Nov 15, 2021

@jcustenborder I may want to implement at least the ability to publish for a use-case at my company. Do you have some thoughts on how you want this accomplished?
My initial thoughts:
Config additions(something like):
redis.action which could be one of 2 possibilities at this point: set or publish, defaulting to set
redis.channel which would take your channel name

Update the put method
do some logic based on the configs and execute the appropriate action.

It would probably ignore the key and just load the value into the channel.
If people want to do any other transformations on the payload they can use/build an SMT.

@Bradleywboggs
Copy link

Looking a little closer at the put method, I see there's a little more going on there than I initially suspected. I think that the actions could be cache or pubsub. With the ultimate redis ops for cache being mset or delete, and the pubsub operation being publish ? I'm not feeling too certain on the naming of the things, so your thoughts are totally welcome here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants