Skip to content

Commit

Permalink
WIP: add more to storage-pool readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Klowner committed May 29, 2024
1 parent 15c91bd commit 6a6f216
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/storage-pool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ const storage = new TussleStoragePool({
### Methods
While TussleStoragePool implements all the [TussleStorageService](../spec/interface/storage.d.ts)
methods, they also take an optional `storageKey` parameter which should
correspond to the names defined in the pool's `stores` object.
correspond to the names defined in the pool's `stores` object. Similarly, response
bodies will always include an additional `storageKey: string` indicating which sub-store
handled the request.

Providing a `storageKey` for `createFile()` is all that's necessary to
permanently route operations for the created file to the same storage service.
Expand Down

0 comments on commit 6a6f216

Please sign in to comment.