I want to use persistent context in one of my contributed nodes, but I have a few questions about how it works.
First, when using the
localfilesystem module, the documentation says the default
flushInterval is 30 seconds. (Good for the health of SD cards.) Does this mean that the entire cache is flushed every 30 seconds, regardless of whether any of its contents have changed? It would be nice (at least for testing with small amounts of data) to be able to set the interval much shorter without having to worry.
Second, am I right to assume that "flush" here just means refreshing the filesystem copy, so that the copy in memory continues to be used (unless
Third, is there a way to force a flush from memory to "disk", so that the persistent copy is guaranteed to be up to date?
Finally, I want to assume that NR flushes the cache when it shuts down. Is that correct?
Sorry to be a bother, but trial-and-error has taken me only so far.