MCPcopy
hub / github.com/simstudioai/sim / canUseMemoryBuffer

Function canUseMemoryBuffer

apps/sim/lib/table/events.ts:166–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164const memoryTableStreams = new Map<string, MemoryTableStream>()
165
166function canUseMemoryBuffer(): boolean {
167 return typeof window === 'undefined' && !env.REDIS_URL
168}
169
170function pruneExpiredMemoryStreams(now = Date.now()): void {
171 for (const [tableId, stream] of memoryTableStreams) {

Callers 2

appendTableEventFunction · 0.85
readTableEventsSinceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected