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,
@@ -161,7 +193,32 @@ spec:
161
193
CacheZoneSize defines the size of the cache zone. Must be a number followed by a size unit:
162
194
'k' for kilobytes, 'm' for megabytes, or 'g' for gigabytes.
163
195
Examples: "10m", "1g", "512k".
164
-
pattern: ^[0-9]+[kmg]$
196
+
pattern: ^[0-9]+[kmgKMG]$
197
+
type: string
198
+
conditions:
199
+
description: Conditions defines when responses should not be cached
200
+
or taken from cache.
201
+
properties:
202
+
bypass:
203
+
description: |-
204
+
Bypass defines conditions under which the response will not be taken from a cache (proxy_cache_bypass).
205
+
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.
206
+
items:
207
+
type: string
208
+
type: array
209
+
noCache:
210
+
description: |-
211
+
NoCache defines conditions under which the response will not be saved to a cache (proxy_no_cache).
212
+
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.
213
+
items:
214
+
type: string
215
+
type: array
216
+
type: object
217
+
inactive:
218
+
description: |-
219
+
Inactive sets the time after which cached data that are not accessed get removed from the cache (inactive parameter).
220
+
By default, inactive is set to 10 minutes.
221
+
pattern: ^[0-9]+[smhd]$
165
222
type: string
166
223
levels:
167
224
description: |-
@@ -172,6 +229,68 @@ spec:
172
229
Invalid: "3:1", "1:3", "1:2:3".
173
230
pattern: ^[12](?::[12]){0,2}$
174
231
type: string
232
+
lock:
233
+
description: Lock configures cache locking to prevent multiple
234
+
identical requests from populating the same cache element simultaneously.
235
+
properties:
236
+
age:
237
+
description: |-
238
+
Age sets the maximum time a cache lock can be held (proxy_cache_lock_age).
239
+
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.
240
+
pattern: ^[0-9]+[smhd]$
241
+
type: string
242
+
enable:
243
+
default: false
244
+
description: |-
245
+
Enable sets whether cache locking is enabled (proxy_cache_lock).
246
+
When enabled, only one request at a time will be allowed to populate a new cache element according to the proxy_cache_key.
247
+
type: boolean
248
+
timeout:
249
+
description: |-
250
+
Timeout sets a timeout for proxy_cache_lock.
251
+
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,
@@ -332,7 +364,32 @@ spec:
332
364
CacheZoneSize defines the size of the cache zone. Must be a number followed by a size unit:
333
365
'k' for kilobytes, 'm' for megabytes, or 'g' for gigabytes.
334
366
Examples: "10m", "1g", "512k".
335
-
pattern: ^[0-9]+[kmg]$
367
+
pattern: ^[0-9]+[kmgKMG]$
368
+
type: string
369
+
conditions:
370
+
description: Conditions defines when responses should not be cached
371
+
or taken from cache.
372
+
properties:
373
+
bypass:
374
+
description: |-
375
+
Bypass defines conditions under which the response will not be taken from a cache (proxy_cache_bypass).
376
+
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.
377
+
items:
378
+
type: string
379
+
type: array
380
+
noCache:
381
+
description: |-
382
+
NoCache defines conditions under which the response will not be saved to a cache (proxy_no_cache).
383
+
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.
384
+
items:
385
+
type: string
386
+
type: array
387
+
type: object
388
+
inactive:
389
+
description: |-
390
+
Inactive sets the time after which cached data that are not accessed get removed from the cache (inactive parameter).
391
+
By default, inactive is set to 10 minutes.
392
+
pattern: ^[0-9]+[smhd]$
336
393
type: string
337
394
levels:
338
395
description: |-
@@ -343,6 +400,68 @@ spec:
343
400
Invalid: "3:1", "1:3", "1:2:3".
344
401
pattern: ^[12](?::[12]){0,2}$
345
402
type: string
403
+
lock:
404
+
description: Lock configures cache locking to prevent multiple
405
+
identical requests from populating the same cache element simultaneously.
406
+
properties:
407
+
age:
408
+
description: |-
409
+
Age sets the maximum time a cache lock can be held (proxy_cache_lock_age).
410
+
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.
411
+
pattern: ^[0-9]+[smhd]$
412
+
type: string
413
+
enable:
414
+
default: false
415
+
description: |-
416
+
Enable sets whether cache locking is enabled (proxy_cache_lock).
417
+
When enabled, only one request at a time will be allowed to populate a new cache element according to the proxy_cache_key.
418
+
type: boolean
419
+
timeout:
420
+
description: |-
421
+
Timeout sets a timeout for proxy_cache_lock.
422
+
When the time expires, the request will be passed to the proxied server, however, the response will not be cached.
0 commit comments