James
04/02/2022, 12:05 AMWalshy | Pages
04/02/2022, 12:05 AMVitali
04/02/2022, 12:06 AMWalshy | Pages
04/02/2022, 12:11 AMVitali
04/02/2022, 12:19 AMexpirationTtl
was never a thing and was never hooked up to anything IIRC (or maybe it was actually setting the cache expiry header? can't recall). There is a plan around it and we will reintroduce but we probably need to have object lifecycles comprehensively solved (although maybe we put in a hack before then - hard to say. we'll see how things develop). Talk to us internally if you absolutely need it but most likely our answer will be no.Vitali
04/02/2022, 12:44 AMinclude
field which is strange since it's R2 specific. This is what is should be instead:
/**
* If you populate this array, then items returned will include this metadata.
* A tradeoff is that fewer results may be returned depending on how big this
* data is. For now the caps are TBD but expect the total memory usage for a list
* operation may need to be <1MB or even <128kb depending on how many list operations
* you are sending into one bucket. Make sure to look at `truncated` for the result
* rather than having logic like
*
* while (listed.length < limit) {
* listed = myBucket.list({ limit, include: ['customMetadata'] })
* }
* */
include: ("httpMetadata" | "customMetadata")[]
Basically it controls if the returned R2Object
list will have a `httpMetadata`/`customMetadata` populated. The performance notes are very preliminary and I wouldn't take them too seriously. Design around what's easiest for now. The performance of the system will be changing drastically in the coming weeks.andrew
04/02/2022, 12:54 AMVitali
04/02/2022, 12:54 AMVitali
04/02/2022, 12:55 AMandrew
04/02/2022, 12:58 AMVitali
04/02/2022, 12:58 AMVitali
04/02/2022, 12:58 AMandrew
04/02/2022, 12:59 AMandrew
04/02/2022, 12:59 AMVitali
04/02/2022, 12:59 AMVitali
04/02/2022, 1:01 AMVitali
04/02/2022, 1:02 AMx-amz-meta-directive
which lets you update key/values without having to know the entire set ahead of timeVitali
04/02/2022, 1:03 AMandrew
04/02/2022, 1:04 AMVitali
04/02/2022, 1:05 AMandrew
04/02/2022, 1:05 AMVitali
04/02/2022, 1:05 AMVitali
04/02/2022, 1:06 AMandrew
04/02/2022, 1:06 AMjohn.spurlock
04/02/2022, 1:06 AMVitali
04/02/2022, 1:06 AMVitali
04/02/2022, 1:06 AMjohn.spurlock
04/02/2022, 1:07 AMVitali
04/02/2022, 1:07 AMVitali
04/02/2022, 1:07 AM