This function is called when one or all the Redis databases are * flushed. Caching keys are not specific for each DB but are global: * currently what we do is send a special notification to clients with * tracking enabled, sending a RESP NULL, which means, "all the keys", * in order to avoid flooding clients with many invalidation messages * for all the keys they may hold. */
| 408 | * for all the keys they may hold. |
| 409 | */ |
| 410 | void freeTrackingRadixTreeCallback(void *rt) { |
| 411 | raxFree(rt); |
| 412 | } |
| 413 | |
| 414 | void freeTrackingRadixTree(rax *rt) { |
| 415 | raxFreeWithCallback(rt,freeTrackingRadixTreeCallback); |