We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a29597 commit c9e5faeCopy full SHA for c9e5fae
src/providers/image-loader-config.ts
@@ -126,4 +126,20 @@ export class ImageLoaderConfig {
126
this.concurrency = concurrency;
127
}
128
129
+ /**
130
+ * Sets the maximum allowed cache size
131
+ * @param cacheSize {number} Cache size in bytes
132
+ */
133
+ setMaximumCacheSize(cacheSize: number): void {
134
+ this.maxCacheSize = cacheSize;
135
+ }
136
+
137
138
+ * Sets the maximum allowed cache age
139
+ * @param cacheAge {number} Maximum cache age in milliseconds
140
141
+ setMaximumCacheAge(cacheAge: number): void {
142
+ this.maxCacheAge = cacheAge;
143
144
145
0 commit comments