MCPcopy Index your code
hub / github.com/simstudioai/sim / requireRedis

Function requireRedis

apps/sim/lib/core/storage/storage.ts:60–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 * consistency with the storage method decision.
59 */
60export function requireRedis() {
61 if (!isRedisStorage()) {
62 throw new Error('Redis storage not configured')
63 }
64
65 const redis = getRedisClient()
66 if (!redis) {
67 throw new Error('Redis client unavailable')
68 }
69
70 return redis
71}
72
73/**
74 * Reset the cached storage method.

Callers

nothing calls this directly

Calls 2

getRedisClientFunction · 0.90
isRedisStorageFunction · 0.85

Tested by

no test coverage detected