talk is cheap, show me the code. 一.开启Redis key过期提醒 方式二:修改配置文件 redis.conf # 默认 notify-keyspace-events "" notify-keyspace-events Ex 方式二:命令行开启 CONFIG SET notify-keyspace-events Ex CONFIG GET notify-keyspace-events 二.notify-keyspace-events notify-ke
Commands Clients Documentation Community Download Support License Join us in London October 19th for the 2nd Redis Developers Day 2015 and October 20th for the Redis Unconference London. Redis Keyspace Notifications IMPORTANT Keyspace notifications i
当redis被用作缓存时,有时我们希望了解key的大小分布,或者想知道哪些key占的空间比较大.本文提供了几种方法. 一. bigKeys 这是redis-cli自带的一个命令.对整个redis进行扫描,寻找较大的key.例: redis-cli -h b.redis -p --bigkeys 输出 # Scanning the entire keyspace to find biggest keys as well as # average sizes per key type. You ca