| 949 | } |
| 950 | |
| 951 | void randomkeyCommand(client *c) { |
| 952 | robj *key; |
| 953 | |
| 954 | if ((key = dbRandomKey(c->db)) == NULL) { |
| 955 | addReplyNull(c); |
| 956 | return; |
| 957 | } |
| 958 | |
| 959 | addReplyBulk(c,key); |
| 960 | decrRefCount(key); |
| 961 | } |
| 962 | |
| 963 | bool redisDbPersistentData::iterate(std::function<bool(const char*, robj*)> fn) |
| 964 | { |
nothing calls this directly
no test coverage detected