Optionalctx: BuilderContext— optional BuilderContext. When supplied, built-in builders that
create disposable sub-resources (the redis builder's underlying client)
register their cleanup via ctx.lifecycle?.register(...) so
AppHandle.dispose() drains them.
Construct a fresh SessionStoreFactory. Register built-in adapters via registerBuiltinSessionStores or custom adapters via
factory.register.