Skip to content

Commit b08075e

Browse files
committed
chore: update package name
1 parent 3f39239 commit b08075e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,21 @@
77
## Installation
88

99
```
10-
npm i cache-manager-bun-sqlite
10+
bun add cache-manager-bun-sqlite3
1111
```
1212

1313
## Usage
1414

1515
### Single store
1616

1717
```ts
18-
import
1918
import cacheManager from 'cache-manager';
20-
import bunSqliteStore from 'cache-manager-bun-sqlite';
19+
import bunSqliteStore from 'cache-manager-bun-sqlite3';
2120

2221
// SQLite :memory: cache store
2322
cache = await cacheManager.caching(bunSqliteStore, {
24-
serializer: 'json', // default is 'cbor'
25-
ttl: 20, // TTL in seconds
23+
serializer: 'json', // default is 'cbor'
24+
ttl: 20, // TTL in seconds
2625
});
2726

2827
// On-disk cache on employees table
@@ -44,7 +43,7 @@ const value = await cache.get('foo');
4443

4544
```ts
4645
import cacheManager from 'cache-manager';
47-
import bunSqliteStore from 'cache-manager-bun-sqlite';
46+
import bunSqliteStore from 'cache-manager-bun-sqlite3';
4847
import redisStore from 'cache-manager-ioredis';
4948

5049
const redisCache = await cacheManager.caching({ store: redisStore, db: 0, ttl: 600 });

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "cache-manager-bun-sqlite",
2+
"name": "cache-manager-bun-sqlite3",
33
"version": "0.1.0",
44
"description": "Bun sqlite store for node-cache-manager",
55
"type": "module",

0 commit comments

Comments
 (0)