You can manage the size of buckets in an event cache. That can often be important in controlling the use of memory.
eventCache(instream, 3 events) e0; eventCache(instream, 3 seconds) e1;You can also specify whether to completely clear the bucket when the size or time expires by specifying the jump option:
eventCache(instream, 3 seconds, jump);The default is nojump.
eventCache(instream, 10 events, 3 seconds, jump);