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

feat: lettuce factory support pub/sub connection #918

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Roiocam
Copy link
Contributor

@Roiocam Roiocam commented Aug 23, 2024

Related with #707

My application similar to this issue, uses LettuceFactory to get the Connection globally.

@Roiocam Roiocam marked this pull request as ready for review August 23, 2024 19:46
@Roiocam Roiocam marked this pull request as draft August 23, 2024 19:46
@Roiocam Roiocam marked this pull request as ready for review September 4, 2024 06:17
@@ -47,11 +49,13 @@ private LettuceObjects getLettuceObjectsFromMap(AbstractRedisClient redisClient)
}

public void init(AbstractRedisClient redisClient, StatefulConnection connection) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

init方法有一个就行了,用两个参数就可以。如果不想破坏兼容性,可以加一个双参数的,然后把原来的标记为废弃。这里把connection的赋值放在外面,有理论上的线程安全问题吧?

@areyouok
Copy link
Collaborator

我刚注意到这个pr,不知道什么时候完成的?

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

Successfully merging this pull request may close these issues.

2 participants