Creates an empty RegisterCache.
The cache is synchronous and holds no scope. Its lifetime is the transport's: one cache per bus, shared by every client derived from it.
const cache = createRegisterCache();const { pending, suppressed } = cache.filter(3, [{ address: 2000, value: 512 }]);// pending: the write; suppressed: empty, since nothing is known yet Copy
const cache = createRegisterCache();const { pending, suppressed } = cache.filter(3, [{ address: 2000, value: 512 }]);// pending: the write; suppressed: empty, since nothing is known yet
Creates an empty RegisterCache.
The cache is synchronous and holds no scope. Its lifetime is the transport's: one cache per bus, shared by every client derived from it.