typedefstructredisDb { dict *dict; /* The keyspace for this DB */ dict *expires; /* 记录过期时间 */ dict *blocking_keys; /* 记录和阻塞有关的key */ dict *ready_keys; /* Blocked keys that received a PUSH */ dict *watched_keys; /* watch multi exec有关的key */ int id; /* Database ID */ longlong avg_ttl; /* Average TTL, just for stats */ unsignedlong expires_cursor; /* Cursor of the active expire cycle. */ list *defrag_later; /* List of key names to attempt to defrag one by one, gradually. */ } redisDb;