TreeINFO-For-M365 documentation
    Preparing search index...

    Interface SPDataSourceConfiguration

    interface SPDataSourceConfiguration {
        Cache?: string;
        SourceList: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    Cache?: string

    Enables caching of fetched data. The value is a duration string in HH:MM:SS format.

    • With expiration ("HH:MM:SS" where at least one part is non-zero) — data is stored in localStorage with an expiration timestamp. Expired entries are removed automatically on next read.
    • Without expiration (undefined / omitted) — data is stored in sessionStorage and lives until the browser tab is closed.

    In both cases the data is also kept in an in-memory map for the lifetime of the page, so repeated reads within the same page load are instant.

    Cache keys are scoped per site (TiSa-{siteName}-…), so data from different sites never collides.

    Example: "24:0:0" caches for 24 hours in localStorage.

    Note: cache is bypassed entirely when a custom function returns { response: ... } (direct response). Use ?disableCache=true in the URL to disable persistent storage during development.

    "1:0:0" // 1 hour
    
    SourceList: string

    Target SharePoint list.

    Example: {SiteUrl}/CounterPart