Skip to content

Commit

Permalink
feat(image-loader-config): add setMaximumCacheSize and setMaximumCach…
Browse files Browse the repository at this point in the history
…eAge
  • Loading branch information
ihadeed committed Feb 7, 2017
1 parent 6a29597 commit c9e5fae
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/providers/image-loader-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,20 @@ export class ImageLoaderConfig {
this.concurrency = concurrency;
}

/**
* Sets the maximum allowed cache size
* @param cacheSize {number} Cache size in bytes
*/
setMaximumCacheSize(cacheSize: number): void {
this.maxCacheSize = cacheSize;
}

/**
* Sets the maximum allowed cache age
* @param cacheAge {number} Maximum cache age in milliseconds
*/
setMaximumCacheAge(cacheAge: number): void {
this.maxCacheAge = cacheAge;
}

}

0 comments on commit c9e5fae

Please sign in to comment.