#Document cache volume sharing modes

1 messages · Page 1 of 1 (latest)

charred jay
#

I believe that is a blind spot of our docs, both manually written guides, and generated API refernece (not sure why).

cc @ocean lance @fervent aspen

#

@hard socket

  • PRIVATE is for per-session volumes. In that sharing mode, each Dagger session gets its own blank version of the volume, that gets discarded at the end of the session. So data is persisted in between operations within the same session, but NOT in between sessions.

  • SHARED is indeed for concurrent writes

  • LOCKED is for serialized writes: only one writer is allowed at a time (safer, but can cause bottlenecks)

hard socket
#

Ah, thanks! This was very useful information.

charred jay
#

Don't forget to leave a 5 star rating!