MCPcopy Index your code
hub / github.com/formbricks/formbricks / isNullableCacheBox

Method isNullableCacheBox

packages/cache/src/service.ts:331–338  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

329 }
330
331 private isNullableCacheBox<T>(value: unknown): value is NullableCacheBox<T> {
332 return (
333 typeof value === "object" &&
334 value !== null &&
335 (value as Record<string, unknown>)[NULLABLE_BOX_MARKER] === true &&
336 Object.hasOwn(value, "value")
337 );
338 }
339
340 private async tryGetCachedValue<T>(key: CacheKey, ttlMs: number): Promise<T | undefined> {
341 try {

Callers 1

withCacheNullableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected