Type Alias XiorCacheOptions

XiorCacheOptions: {
    cacheItems?: number;
    cacheTime?: number;
    defaultCache?: ICacheLike<XiorPromise>;
    enableCache?: boolean | ((config?: XiorRequestConfig) => boolean);
}

Type declaration

  • OptionalcacheItems?: number

    max cache number in LRU, default is 100

  • OptionalcacheTime?: number

    cache time in ms, default is 5 minutes

  • OptionaldefaultCache?: ICacheLike<XiorPromise>
  • OptionalenableCache?: boolean | ((config?: XiorRequestConfig) => boolean)

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