6 ms·
You are right. It just should be like so: Get: const likes = (await kv.hget(postTitle, "likes")) || 0 Post: const likes = await kv.hincrby(postTitle,
by chilling 2y ago
You are right. It just should be like so:
Get:
const likes = (await kv.hget(postTitle, "likes")) || 0
Post:
const likes = await kv.hincrby(postTitle, "likes", 1);