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

复杂对象存储redis #22

Closed
trymorewang opened this issue Jan 11, 2020 · 1 comment
Closed

复杂对象存储redis #22

trymorewang opened this issue Jan 11, 2020 · 1 comment

Comments

@trymorewang
Copy link

文中提到,有些仔喜欢把复杂对象也转换成JsonString存储,实不相瞒,我就是那个仔,哈哈哈哈。比如在登陆的时候将用户的基本信息(user)以及权限(permission) 一起转成JsonString存缓存了,我想知道更好的做法是什么。

@AobingJava
Copy link
Owner

Hash 用来存储对象会好点

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

2 participants