MCPcopy
hub / github.com/loggerhead/json4u / set

Method set

src/lib/supabase/server.ts:75–87  ·  view source on GitHub ↗
(key: string, value: any, expiredAt?: Date)

Source from the content-addressed store, hash-verified

73 }
74
75 async set(key: string, value: any, expiredAt?: Date) {
76 const expired_at = expiredAt ? expiredAt.toISOString() : undefined;
77
78 const { error } = await this.client
79 .from("kv")
80 .upsert({
81 key,
82 value: JSON.stringify(value),
83 expired_at,
84 })
85 .eq("key", key);
86 if (error) throw error;
87 }
88
89 async upsertOrder(order: Order) {
90 const { error } = await this.client.from("orders").upsert(toTableOrder(order));

Callers 13

addFunctionWasmFunction · 0.80
writeArrayToMemoryFunction · 0.80
jq.jsFile · 0.80
middlewareFunction · 0.80
setAllFunction · 0.80
addMethod · 0.80
delFirstMethod · 0.80
urlToMapFunction · 0.80
addCellFunction · 0.80
applyTreeEditsMethod · 0.80
setAllFunction · 0.80
safeSetFunction · 0.80

Calls 2

eqMethod · 0.80
stringifyMethod · 0.80

Tested by

no test coverage detected