Performs similar operation to FLUSHALL, and optionally start a new AOF file (if enabled) * If restart_aof is true, you must make sure the command that triggered this call is not * propagated to the AOF file. * When async is set to true, db contents will be freed by a background thread. */
| 2510 | * propagated to the AOF file. |
| 2511 | * When async is set to true, db contents will be freed by a background thread. */ |
| 2512 | void RM_ResetDataset(int restart_aof, int async) { |
| 2513 | if (restart_aof && g_pserver->aof_state != AOF_OFF) stopAppendOnly(); |
| 2514 | flushAllDataAndResetRDB(async? EMPTYDB_ASYNC: EMPTYDB_NO_FLAGS); |
| 2515 | if (g_pserver->aof_enabled && restart_aof) restartAOFAfterSYNC(); |
| 2516 | } |
| 2517 | |
| 2518 | /* Returns the number of keys in the current db. */ |
| 2519 | unsigned long long RM_DbSize(RedisModuleCtx *ctx) { |
nothing calls this directly
no test coverage detected