feat: migrate to the new system.

This commit is contained in:
Hexagonn
2024-10-20 19:44:03 +07:00
parent ff86f2afde
commit be11864c21
68 changed files with 1293 additions and 2752 deletions

9
src/utils/actions.ts Normal file
View File

@@ -0,0 +1,9 @@
"use server";
import redis from "@/utils/redis";
export async function getUserCount() {
let users = await redis.hgetall("users");
let count = Object.keys(users);
return count.length;
}