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

Spug常见问题 #95

Open
vapao opened this issue May 30, 2020 · 4 comments
Open

Spug常见问题 #95

vapao opened this issue May 30, 2020 · 4 comments

Comments

@vapao vapao pinned this issue May 30, 2020
@docwuqihao
Copy link

spug用redis都存储了哪些东西?占用内存会2G之多?

@leochen-g
Copy link

spug用redis都存储了哪些东西?占用内存会2G之多?

同问,我的是重启后占了3G

@vapao
Copy link
Contributor Author

vapao commented Oct 14, 2021

redis 会存储发布时执行的命令输出的内容,默认保存14天,如果输出内容很多的话会很大。
可以先更改下redis的如下两个配置来控制内存使用量:

maxmemory 2GB
maxmemory-policy allkeys-lru

一般配置文件位于 /etc/redis.conf

@caccwin
Copy link

caccwin commented Jun 27, 2023

有办法从redis中取到当前session的loginusername吗?

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

4 participants