spug icon indicating copy to clipboard operation
spug copied to clipboard

Spug常见问题

Open vapao opened this issue 5 years ago • 5 comments

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

docwuqihao avatar Sep 03 '21 10:09 docwuqihao

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

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

leochen-g avatar Oct 13 '21 05:10 leochen-g

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

maxmemory 2GB
maxmemory-policy allkeys-lru

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

vapao avatar Oct 14 '21 00:10 vapao

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

caccwin avatar Jun 27 '23 05:06 caccwin