Compare commits
5 Commits
13-01-25-7
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76dd3d8552 | ||
|
|
8830411787 | ||
|
|
0a4d223b3b | ||
|
|
fa1780a61f | ||
|
|
aecb9b1de7 |
|
|
@ -167,7 +167,7 @@ export const handler = async (req, res) => {
|
|||
if (command === "GET") {
|
||||
result = await client.get(key);
|
||||
} else if (command === "SET") {
|
||||
result = await client.set(key, value, "EX", ttl || 0);
|
||||
result = ttl ? await client.set(key, value, "EX", ttl) : await client.set(key, value);
|
||||
}
|
||||
|
||||
console.log('Command executed successfully:', JSON.stringify(result));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user