You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CacheZoneName defines the name of the cache zone. Must start with a lowercase letter,
@@ -159,9 +196,34 @@ spec:
159
196
cacheZoneSize:
160
197
description: |-
161
198
CacheZoneSize defines the size of the cache zone. Must be a number followed by a size unit:
162
-
'k' for kilobytes, 'm' for megabytes, or 'g' for gigabytes.
199
+
'k' or 'K' for kilobytes, 'm' or 'M' for megabytes, or 'g' or 'G' for gigabytes.
163
200
Examples: "10m", "1g", "512k".
164
-
pattern: ^[0-9]+[kmg]$
201
+
pattern: ^[0-9]+[kmgKMG]$
202
+
type: string
203
+
conditions:
204
+
description: Conditions defines when responses should not be cached
205
+
or taken from cache.
206
+
properties:
207
+
bypass:
208
+
description: |-
209
+
Bypass defines conditions under which the response will not be taken from a cache (proxy_cache_bypass).
210
+
If at least one value of the string parameters is not empty and is not equal to "0" then the response will not be taken from the cache.
211
+
items:
212
+
type: string
213
+
type: array
214
+
noCache:
215
+
description: |-
216
+
NoCache defines conditions under which the response will not be saved to a cache (proxy_no_cache).
217
+
If at least one value of the string parameters is not empty and is not equal to "0" then the response will not be saved.
218
+
items:
219
+
type: string
220
+
type: array
221
+
type: object
222
+
inactive:
223
+
description: |-
224
+
Inactive sets the time after which cached data that are not accessed get removed from the cache (inactive parameter).
225
+
By default, inactive is set to 10 minutes.
226
+
pattern: ^[0-9]+[smhd]$
165
227
type: string
166
228
levels:
167
229
description: |-
@@ -172,6 +234,67 @@ spec:
172
234
Invalid: "3:1", "1:3", "1:2:3".
173
235
pattern: ^[12](?::[12]){0,2}$
174
236
type: string
237
+
lock:
238
+
description: Lock configures cache locking to prevent multiple
239
+
identical requests from populating the same cache element simultaneously.
240
+
properties:
241
+
age:
242
+
description: |-
243
+
Age sets the maximum time a cache lock can be held (proxy_cache_lock_age).
244
+
If the last request passed to the proxied server for populating a new cache element has not completed for the specified time, one more request may be passed.
245
+
pattern: ^[0-9]+[smhd]$
246
+
type: string
247
+
enable:
248
+
default: false
249
+
description: |-
250
+
Enable sets whether cache locking is enabled (proxy_cache_lock).
251
+
When enabled, only one request at a time will be allowed to populate a new cache element according to the proxy_cache_key.
252
+
type: boolean
253
+
timeout:
254
+
description: |-
255
+
Timeout sets a timeout for proxy_cache_lock.
256
+
When the time expires, the request will be passed to the proxied server, however, the response will not be cached.
CacheZoneName defines the name of the cache zone. Must start with a lowercase letter,
@@ -330,9 +367,34 @@ spec:
330
367
cacheZoneSize:
331
368
description: |-
332
369
CacheZoneSize defines the size of the cache zone. Must be a number followed by a size unit:
333
-
'k' for kilobytes, 'm' for megabytes, or 'g' for gigabytes.
370
+
'k' or 'K' for kilobytes, 'm' or 'M' for megabytes, or 'g' or 'G' for gigabytes.
334
371
Examples: "10m", "1g", "512k".
335
-
pattern: ^[0-9]+[kmg]$
372
+
pattern: ^[0-9]+[kmgKMG]$
373
+
type: string
374
+
conditions:
375
+
description: Conditions defines when responses should not be cached
376
+
or taken from cache.
377
+
properties:
378
+
bypass:
379
+
description: |-
380
+
Bypass defines conditions under which the response will not be taken from a cache (proxy_cache_bypass).
381
+
If at least one value of the string parameters is not empty and is not equal to "0" then the response will not be taken from the cache.
382
+
items:
383
+
type: string
384
+
type: array
385
+
noCache:
386
+
description: |-
387
+
NoCache defines conditions under which the response will not be saved to a cache (proxy_no_cache).
388
+
If at least one value of the string parameters is not empty and is not equal to "0" then the response will not be saved.
389
+
items:
390
+
type: string
391
+
type: array
392
+
type: object
393
+
inactive:
394
+
description: |-
395
+
Inactive sets the time after which cached data that are not accessed get removed from the cache (inactive parameter).
396
+
By default, inactive is set to 10 minutes.
397
+
pattern: ^[0-9]+[smhd]$
336
398
type: string
337
399
levels:
338
400
description: |-
@@ -343,6 +405,67 @@ spec:
343
405
Invalid: "3:1", "1:3", "1:2:3".
344
406
pattern: ^[12](?::[12]){0,2}$
345
407
type: string
408
+
lock:
409
+
description: Lock configures cache locking to prevent multiple
410
+
identical requests from populating the same cache element simultaneously.
411
+
properties:
412
+
age:
413
+
description: |-
414
+
Age sets the maximum time a cache lock can be held (proxy_cache_lock_age).
415
+
If the last request passed to the proxied server for populating a new cache element has not completed for the specified time, one more request may be passed.
416
+
pattern: ^[0-9]+[smhd]$
417
+
type: string
418
+
enable:
419
+
default: false
420
+
description: |-
421
+
Enable sets whether cache locking is enabled (proxy_cache_lock).
422
+
When enabled, only one request at a time will be allowed to populate a new cache element according to the proxy_cache_key.
423
+
type: boolean
424
+
timeout:
425
+
description: |-
426
+
Timeout sets a timeout for proxy_cache_lock.
427
+
When the time expires, the request will be passed to the proxied server, however, the response will not be cached.
0 commit comments