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

Method getRedisClient

packages/cache/src/service.ts:42–47  ·  view source on GitHub ↗

* Get the underlying Redis client for advanced operations (e.g., Lua scripts) * Use with caution - prefer cache service methods when possible * @returns The Redis client instance or null if not ready

()

Source from the content-addressed store, hash-verified

40 * @returns The Redis client instance or null if not ready
41 */
42 getRedisClient(): RedisClient | null {
43 if (!this.isRedisClientReady()) {
44 return null;
45 }
46 return this.redis;
47 }
48
49 /**
50 * Get a value from cache with automatic JSON deserialization

Callers 11

getCacheServiceFunction · 0.80
service.test.tsFile · 0.80
shouldLogAuthFailureFunction · 0.80
checkRedisAvailabilityFunction · 0.80
checkRateLimitFunction · 0.80
consumeCachedJsonValueFunction · 0.80
index.test.tsFile · 0.80
getFunction · 0.80

Calls 1

isRedisClientReadyMethod · 0.95

Tested by 1

checkRedisAvailabilityFunction · 0.64