Redis + RateLimiting

This commit is contained in:
2024-04-23 20:14:32 +02:00
parent c715dadb11
commit 6c39c292b0
15 changed files with 330 additions and 48 deletions

View File

@@ -259,6 +259,10 @@ function getClassName($class, bool $short = true): string {
}
}
function isDocker(): bool {
return file_exists("/.dockerenv");
}
function createError($msg): array {
return ["success" => false, "msg" => $msg];
}