Skip to content

Commit

Permalink
Sync changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JadenSimon committed Aug 31, 2024
1 parent 5cb109c commit 278bea3
Show file tree
Hide file tree
Showing 101 changed files with 5,581 additions and 2,515 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@ Features:
```main.ts
import { Bucket } from 'synapse:srl/storage'

// `Bucket` is a storage resource, which can be deployed locally or to the cloud
const bucket = new Bucket()

export async function main() {
await bucket.put('hello', 'world!')
console.log(await bucket.get('hello', 'utf-8'))
const data = await bucket.get('hello', 'utf-8')
console.log('hello', data)

if (data === undefined) {
await bucket.put('hello', 'world!')
console.log('Wrote to the bucket, run me again!')
}
}
```

Expand Down
Loading

0 comments on commit 278bea3

Please sign in to comment.