Lines Matching refs:key
197 robj *key; member
202 void watchForKey(client *c, robj *key) { in watchForKey() argument
212 if (wk->db == c->db && equalStringObjects(key,wk->key)) in watchForKey()
216 clients = dictFetchValue(c->db->watched_keys,key); in watchForKey()
219 dictAdd(c->db->watched_keys,key,clients); in watchForKey()
220 incrRefCount(key); in watchForKey()
225 wk->key = key; in watchForKey()
227 incrRefCount(key); in watchForKey()
246 clients = dictFetchValue(wk->db->watched_keys, wk->key); in unwatchAllKeys()
251 dictDelete(wk->db->watched_keys, wk->key); in unwatchAllKeys()
254 decrRefCount(wk->key); in unwatchAllKeys()
261 void touchWatchedKey(redisDb *db, robj *key) { in touchWatchedKey() argument
267 clients = dictFetchValue(db->watched_keys, key); in touchWatchedKey()
300 if (dictFind(wk->db->dict, wk->key->ptr) != NULL) in touchWatchedKeysOnFlush()