You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/bentocache/README.md
+9-7
Original file line number
Diff line number
Diff line change
@@ -76,15 +76,15 @@ Multi-layer caching allows you to combine the speed of in-memory caching with th
76
76
77
77
Many drivers available to suit all situations: Redis, Upstash, Database (MySQL, SQLite, PostgreSQL), DynamoDB, Filesystem, In-memory (LRU Cache), Vercel KV...
78
78
79
-
See the [drivers documentation](https://bentocache.dev/docs/cache-drivers) for list of available drivers. Also very easy to extend the library and [add your own driver](https://bentocache.dev/docs/custom-cache-driver)
79
+
See the [drivers documentation](https://bentocache.dev/docs/cache-drivers) for list of available drivers. Also, very easy to extend the library and [add your own driver](https://bentocache.dev/docs/custom-cache-driver)
80
80
81
81
### Resiliency
82
82
83
83
-[Grace period](https://bentocache.dev/docs/grace-periods): Keep your application running smoothly with the ability to temporarily use expired cache entries when your database is down, or when a factory is failing.
84
84
85
85
-[Cache stamped prevention](https://bentocache.dev/docs/stampede-protection): Ensuring that only one factory is executed at the same time.
86
86
87
-
-[Retry queue](https://bentocache.dev/docs/multi-tier#retry-queue-strategy) : When a application fails to publish something to the bus, it is added to a queue and retried later.
87
+
-[Retry queue](https://bentocache.dev/docs/multi-tier#retry-queue-strategy) : When an application fails to publish something to the bus, it is added to a queue and retried later.
88
88
89
89
### Timeouts
90
90
@@ -97,8 +97,8 @@ The ability to create logical groups for cache keys together, so you can invalid
97
97
```ts
98
98
const users =bento.namespace('users')
99
99
100
-
users.set('32', { name: 'foo' })
101
-
users.set('33', { name: 'bar' })
100
+
users.set({ key: '32', value: { name: 'foo' } })
101
+
users.set({ key: '33', value: { name: 'bar' } })
102
102
103
103
users.clear()
104
104
```
@@ -120,9 +120,11 @@ See the [events documentation](https://bentocache.dev/docs/events) for more info
120
120
All TTLs can be passed in a human-readable string format. We use [lukeed/ms](https://github.com/lukeed/ms) under the hood. (this is optional, and you can pass a `number` in milliseconds if you prefer)
0 commit comments