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

关于 openresty 和 redis 的使用 #350

Open
liuyunbin opened this issue May 15, 2024 · 2 comments
Open

关于 openresty 和 redis 的使用 #350

liuyunbin opened this issue May 15, 2024 · 2 comments

Comments

@liuyunbin
Copy link
Contributor

有人试过 openresty 启动的时候, 把基础数据存入 redis, 使用的时候直接读取 redis 查找吗?
感觉挺实用的

@joyoyao
Copy link

joyoyao commented May 16, 2024

为啥不直接放到内存里,放到内存里速度不是更快。

@liuyunbin
Copy link
Contributor Author

主要考虑到

  1. 便于 多个进程 或 线程 或 请求 共享数据
  2. 便于以后通过 redis 扩展位域信息

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