matrix-js-sdk
    Preparing search index...

    Class PollingCachedValue<ValueType>

    Defines a generic mechanism to fetch and cache a value, refreshing it periodically.

    Type Parameters

    • ValueType
    Index
    • Call this as early as possible and when the value can already be fetched.

      Parameters

      • OptionalttlMillis: number

        The time-to-live before the value gets refreshed, overriding the one given at construction. If omitted the configured default is kept.

      Returns void

    • Call when the client is stopped, or when the cached value is no longer needed.

      Returns void