Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [higgins-dev] new IdASRegistry

>[Markus] The cache is very simple. If it is enabled, the instances never become stale. The idea is that if the IdASRegistry is configured from a local file, you enable caching, since you don't expect the file to change. If you configure the IdASRegistry from a URI or XRI, you disable caching, so every time a context factory is requested, the XRDS is freshly discovered and a context factory chosen, instantiated and configured.
>
>I'll add this information to the page.
>
>Let me know if anyone feels we need a more advanced solution here.
Maybe it would be good to make IContextFactory define a getInstance method that is called, and thus each CP could control its own cache and staleness.  I think this is something we don't need to address right now.

Back to the top