Skip to content

Commit

Permalink
fix: state ttl doc (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzraho authored Jun 26, 2024
1 parent 5157c5a commit 761c00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/guides/application_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ npm install @adobe/aio-lib-state
const value = res.value
// put
await state.put('key', 'value') // with default ttl of 1 day
await state.put('another key', 'another value', { ttl: 200 }) // in seconds, use -1 for max (365 days).
await state.put('another key', 'another value', { ttl: 200 }) // in seconds, use stateLib.MAX_TTL for 365 days.
// delete
await state.delete('key')
Expand Down

0 comments on commit 761c00c

Please sign in to comment.