xior
    Preparing search index...

    Type Alias XiorThrottleOptions

    type XiorThrottleOptions = {
        enableThrottle?: boolean | ((config?: XiorRequestConfig) => boolean);
        onThrottle?: (config: XiorRequestConfig) => void;
        threshold?: number;
        throttleCache?: ICacheLike<RecordedCache>;
        throttleItems?: number;
    }
    Index

    Properties

    enableThrottle?: boolean | ((config?: XiorRequestConfig) => boolean)

    check if we need enable throttle, default only GET method orisGet: true enable

    onThrottle?: (config: XiorRequestConfig) => void
    threshold?: number

    threshold in milliseconds, default: 1000ms

    throttleCache?: ICacheLike<RecordedCache>
    throttleItems?: number

    max throttle numbers in LRU, default is 100