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

Provide a stateful redis connection and decouple sync/async API from connection resources #75

Closed
mp911de opened this issue Jun 7, 2015 · 0 comments
Labels
type: feature A new feature
Milestone

Comments

@mp911de
Copy link
Collaborator

mp911de commented Jun 7, 2015

3.x code:

RedisConnection connection = client.connect();

4.x code:

StatefulRedisConnection stateful = client.connect();
RedisConnection connection = stateful.sync();

The other connect methods like connectAsync and connectSentinelAsync will remain unchanged.

Affected connect methods are:

  • RedisClient.connect (provides a StatefulRedisConnection)
  • RedisClient.connectPubSub (provides a StatefulRedisPubSubConnection)
  • RedisClusterClient.connect (provides a StatefulRedisClusterConnection)

New connect methods:

  • RedisClient.connectSentinel (provides a StatefulRedisSentinelConnection)
@mp911de mp911de added the type: feature A new feature label Jun 7, 2015
@mp911de mp911de added this to the Lettuce 4.0 milestone Jun 7, 2015
mp911de added a commit that referenced this issue Jun 9, 2015
@mp911de mp911de closed this as completed Jun 11, 2015
mp911de added a commit that referenced this issue Jun 21, 2015
…#76

- Breaking change to lettuce 3.x
- RedisClient.connect and RedisClient.connectPubSub changed to return a stateful connection.
New methods RedisClient.connectSentinel and RedisClusterClient.connect for stateful connections.
- RedisClient.connectAsync, RedisClient.connectSentinelAsync and RedisClusterClient.connectCluster are deprecated now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant