Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
gerold-penz committed Aug 8, 2024
1 parent de5b8d6 commit 7c93f7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ console.log(store.get(KEY)) // --> undefined
```typescript
has(key: string): boolean
exists(key: string) // --> alias for has()
<key> in <store>.data
```

Expand Down Expand Up @@ -533,10 +535,9 @@ Inspired by: https://docs.keydb.dev/docs/commands/#randomkey
## Delete Items

```typescript
delete()
delete(key: string)
delete(keys: string[])
clear() // --> alias for `delete()`
delete(keyOrKeys?: string | string[])
clear() // --> delete all items
delete <store>.data.<key>
```
Expand Down Expand Up @@ -601,7 +602,8 @@ console.log(store.getKeys("dynamic:"))
```typescript
getCount(): number
length // --> alias for `getCount()`
count() // --> alias for getCount()
length // --> getter method for `getCount()`
```

Returns the number of all items, including those that have already expired.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bun-sqlite-key-value",
"version": "1.9.3",
"version": "1.9.4",
"author": {
"name": "Gerold Penz",
"email": "[email protected]",
Expand Down

0 comments on commit 7c93f7d

Please sign in to comment.