Remote / foldkit-remote

RetainOptions

interface · packages/remote/src/domain.ts:1181

interface RetainOptions {
  readonly connections?: ReadonlyArray<ConnectionIdentity> | undefined
  readonly grace?: Duration.Input | undefined
  readonly persist?: PersistOption | undefined
}

Members

RetainOptions.connections

property · packages/remote/src/domain.ts:1183

readonly connections?: ReadonlyArray<ConnectionIdentity> | undefined

The query connections the application shows, by QueryRef or identity.

RetainOptions.grace

property · packages/remote/src/domain.ts:1185

readonly grace?: Duration.Input | undefined

How long the roots must be stable before collecting; default none.

RetainOptions.persist

property · packages/remote/src/domain.ts:1192

readonly persist?: PersistOption | undefined

What persistence(Data, …) saves of what this reads: { maxAge } in milliseconds, measured from when it was fetched, or false for none of it. Without it, the wiring's own maxAge. Where two calls that name one read the same row or list, false wins, else the longer age.