我已经在我的服务器上使用 Wordpress 站点将 Redis 设置为缓存机制。基本上在每个请求中,我都会检查页面的缓存是否存在,然后显示缓存。
我使用 Predis ( https://github.com/nrk/predis ) 作为 redis 数据库的接口。
但是,当我从 Redis 的使用中获取信息时,我只看到系统中使用了 1 个密钥:
used_memory:103810376
used_memory_human:99.00M
used_memory_rss:106680320
used_memory_peak:222011768
used_memory_peak_human:211.73M
mem_fragmentation_ratio:1.03
mem_allocator:jemalloc-2.2.5
loading:0
aof_enabled:0
changes_since_last_save:8
bgsave_in_progress:0
last_save_time:1396168319
bgrewriteaof_in_progress:0
total_connections_received:726918
total_commands_processed:1240245
expired_keys:22
evicted_keys:0
keyspace_hits:1158841
keyspace_misses:699
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:21712
vm_enabled:0
role:master
db0:keys=1,expires=0
这怎么可能?我希望看到列出更多键,因为页面的 html 的每个缓存副本都应该有它自己的键?
我在这里想念什么?