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

How to use scredis with preinstantiated ActorSystem? #24

Closed
seigert-xx opened this issue Oct 10, 2014 · 2 comments
Closed

How to use scredis with preinstantiated ActorSystem? #24

seigert-xx opened this issue Oct 10, 2014 · 2 comments

Comments

@seigert-xx
Copy link

Is there a way to pass ActorSystem instance into Redis()?

In our project we access Redis from various actors, so we naturally have ActorSystem by the time we need Redis connection. Also, we use about 30 different Redis connections and (I think that) 30 ActorSystem instances just for Redis connectivity would be an overkill, unless absolutely necessary.

@curreli
Copy link
Contributor

curreli commented Oct 10, 2014

To a Redis instance no. However you can create a Client, BlockingClient and SubscriberClient with an explicit ActorSystem.

I realize it might be useful to be able to pass the ActorSystem to the Redis instance as well. I will probably implement this feature and make it optional in the next minor release.

@curreli curreli modified the milestone: 2.0.4 Oct 14, 2014
@curreli
Copy link
Contributor

curreli commented Oct 14, 2014

Implemented here. Released under version 2.0.4.

@curreli curreli closed this as completed Oct 14, 2014
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