查看redis默认过期策略

一、查看redis过期策略

172.16.208.144:16379> config get maxmemory-policy
maxmemory-policy
noeviction
 

 

二、查看redis使用内存大小

172.16.208.144:16379> config get maxmemory
maxmemory
0
注:内存并没有限制

 

 

三、查看redis的key占用空间

 

172.16.208.144:16379> info memory
# Memory
used_memory:734956040
used_memory_human:700.91M
used_memory_rss:782479360
used_memory_rss_human:746.23M
used_memory_peak:853565616
used_memory_peak_human:814.02M
used_memory_peak_perc:86.10%
used_memory_overhead:19826582
used_memory_startup:803192
used_memory_dataset:715129458
used_memory_dataset_perc:97.41%
allocator_allocated:735077168
allocator_active:807657472
allocator_resident:814309376
total_system_memory:8051073024
total_system_memory_human:7.50G
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.10
allocator_frag_bytes:72580304
allocator_rss_ratio:1.01
allocator_rss_bytes:6651904
rss_overhead_ratio:0.96
rss_overhead_bytes:-31830016
mem_fragmentation_ratio:1.06
mem_fragmentation_bytes:47564328
mem_not_counted_for_evict:2148
mem_replication_backlog:1048576
mem_clients_slaves:0
mem_clients_normal:5180730
mem_aof_buffer:2148
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值