@upstash/redis 0.0.0-ci.8bd938831856fbab2f4aadc67ecb9de61efb6123 → 0.0.0-ci.8c525689f9001cdc6f09b0d60915e4f4a8d934a6-20250918133539
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -6
- package/chunk-PSYAGAHX.mjs +4491 -0
- package/cloudflare.d.mts +15 -5
- package/cloudflare.d.ts +15 -5
- package/cloudflare.js +1707 -176
- package/cloudflare.mjs +38 -2970
- package/fastly.d.mts +10 -5
- package/fastly.d.ts +10 -5
- package/fastly.js +1701 -172
- package/fastly.mjs +32 -2966
- package/nodejs.d.mts +17 -24
- package/nodejs.d.ts +17 -24
- package/nodejs.js +1734 -184
- package/nodejs.mjs +66 -2979
- package/package.json +1 -54
- package/zmscore-fdyOYInO.d.mts +4051 -0
- package/zmscore-fdyOYInO.d.ts +4051 -0
- package/.npmrc +0 -1
- package/cloudflare.js.map +0 -1
- package/cloudflare.mjs.map +0 -1
- package/fastly.js.map +0 -1
- package/fastly.mjs.map +0 -1
- package/nodejs.js.map +0 -1
- package/nodejs.mjs.map +0 -1
- package/redis-e3e8473f.d.ts +0 -1795
package/README.md
CHANGED
|
@@ -7,6 +7,11 @@ of [Upstash REST API](https://docs.upstash.com/features/restapi).
|
|
|
7
7
|

|
|
8
8
|

|
|
9
9
|
|
|
10
|
+
> [!NOTE]
|
|
11
|
+
> **This project is in GA Stage.**
|
|
12
|
+
>
|
|
13
|
+
> The Upstash Professional Support fully covers this project. It receives regular updates, and bug fixes. The Upstash team is committed to maintaining and improving its functionality.
|
|
14
|
+
|
|
10
15
|
It is the only connectionless (HTTP based) Redis client and designed for:
|
|
11
16
|
|
|
12
17
|
- Serverless functions (AWS Lambda ...)
|
|
@@ -20,7 +25,7 @@ It is the only connectionless (HTTP based) Redis client and designed for:
|
|
|
20
25
|
- and other environments where HTTP is preferred over TCP.
|
|
21
26
|
|
|
22
27
|
See
|
|
23
|
-
[the list of APIs](https://
|
|
28
|
+
[the list of APIs](https://upstash.com/docs/redis/overall/rediscompatibility)
|
|
24
29
|
supported.
|
|
25
30
|
|
|
26
31
|
## Quick Start
|
|
@@ -36,7 +41,7 @@ npm install @upstash/redis
|
|
|
36
41
|
#### Deno
|
|
37
42
|
|
|
38
43
|
```ts
|
|
39
|
-
import { Redis } from "https://
|
|
44
|
+
import { Redis } from "https://esm.sh/@upstash/redis";
|
|
40
45
|
```
|
|
41
46
|
|
|
42
47
|
### Create database
|
|
@@ -58,7 +63,7 @@ await redis.set('key', 'value');
|
|
|
58
63
|
let data = await redis.get('key');
|
|
59
64
|
console.log(data)
|
|
60
65
|
|
|
61
|
-
await redis.set('
|
|
66
|
+
await redis.set('key3', 'value3', {ex: 1});
|
|
62
67
|
|
|
63
68
|
// sorted set
|
|
64
69
|
await redis.zadd('scores', { score: 1, member: 'team1' })
|
|
@@ -90,12 +95,12 @@ for common problems. If you can't find a solution, please
|
|
|
90
95
|
|
|
91
96
|
## Docs
|
|
92
97
|
|
|
93
|
-
See [the documentation](https://
|
|
98
|
+
See [the documentation](https://upstash.com/docs/redis/sdks/ts/overview) for
|
|
94
99
|
details.
|
|
95
100
|
|
|
96
101
|
## Contributing
|
|
97
102
|
|
|
98
|
-
### [Install
|
|
103
|
+
### [Install Bun](https://bun.sh/docs/installation)
|
|
99
104
|
|
|
100
105
|
### Database
|
|
101
106
|
|
|
@@ -105,7 +110,13 @@ the url and token
|
|
|
105
110
|
### Running tests
|
|
106
111
|
|
|
107
112
|
```sh
|
|
108
|
-
|
|
113
|
+
bun run test
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Building
|
|
117
|
+
|
|
118
|
+
```sh
|
|
119
|
+
bun run build
|
|
109
120
|
```
|
|
110
121
|
|
|
111
122
|
### Telemetry
|