MCPcopy
hub / github.com/calcom/cal.diy / set

Method set

packages/features/redis/RedisService.ts:26–36  ·  view source on GitHub ↗
(key: string, value: TData, opts?: { ttl?: number })

Source from the content-addressed store, hash-verified

24 }
25
26 async set<TData>(key: string, value: TData, opts?: { ttl?: number }): Promise<"OK" | TData | null> {
27 return this.redis.set(
28 key,
29 value,
30 opts?.ttl
31 ? {
32 px: opts.ttl,
33 }
34 : undefined
35 );
36 }
37
38 async expire(key: string, seconds: number): Promise<0 | 1> {
39 // Implementation for setting expiration time for key in Redis

Callers 15

handleAutoLockFunction · 0.95
loadTranslationsFunction · 0.45
getTranslationFunction · 0.45
constructMeetingImageFunction · 0.45
constructAppImageFunction · 0.45
constructGenericImageFunction · 0.45
isSupportedFunction · 0.45
getFormatterFunction · 0.45
getWeekdayNamesFunction · 0.45
addBusyTimeMethod · 0.45
mergeBusyTimesMethod · 0.45
useLocaleFunction · 0.45

Calls

no outgoing calls

Tested by 5

mockWindowEventListenersFunction · 0.36
fakeCurrentDocumentUrlFunction · 0.36
mockBookingsFunction · 0.36
createMockBookingResultFunction · 0.36