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

Function canUseMemoryEventBuffer

apps/sim/lib/execution/event-buffer.ts:350–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

348const memoryExecutionStreams = new Map<string, MemoryExecutionStream>()
349
350function canUseMemoryEventBuffer(): boolean {
351 return typeof window === 'undefined' && !env.REDIS_URL
352}
353
354function pruneExpiredMemoryStreams(now = Date.now()): void {
355 for (const [executionId, stream] of memoryExecutionStreams) {

Callers 5

setExecutionMetaFunction · 0.85
readExecutionMetaStateFunction · 0.85
readExecutionEventsStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected