Skip to content

Commit 22eeeee

Browse files
committed
Add docs for getShortId in README.md
1 parent 2bcc93c commit 22eeeee

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,16 @@ Example: If used in express, it returns unique store id per request.
227227
const requestIdentifier = store.getId();
228228
```
229229

230+
### getShortId()
231+
232+
Gets the short unique store id created for the current context/scope.
233+
234+
- `@returns {string | undefined}` - Returns the short unique store id.
235+
236+
```js
237+
const requestIdentifier = store.getShortId();
238+
```
239+
230240
## Changelog
231241

232242
Check the [CHANGELOG](CHANGELOG.md) for release history.

0 commit comments

Comments
 (0)