@lynq/store-redis 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +42 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @lynq/store-redis
2
+
3
+ Redis-backed Store implementation for [lynq](https://www.npmjs.com/package/@lynq/lynq) MCP framework.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install @lynq/store-redis @lynq/lynq ioredis
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import Redis from "ioredis";
15
+ import { createMCPServer } from "@lynq/lynq";
16
+ import { redisStore } from "@lynq/store-redis";
17
+
18
+ const client = new Redis();
19
+
20
+ const server = createMCPServer({
21
+ name: "my-server",
22
+ version: "1.0.0",
23
+ store: redisStore({ client }),
24
+ });
25
+
26
+ // In tool handlers: c.store.get(key), c.store.set(key, value, ttl?)
27
+ ```
28
+
29
+ ## Options
30
+
31
+ | Option | Type | Default | Description |
32
+ |---|---|---|---|
33
+ | `client` | `Redis` | required | ioredis client instance |
34
+ | `prefix` | `string` | `"lynq:"` | Key prefix for all entries |
35
+
36
+ ## Documentation
37
+
38
+ [https://hogekai.github.io/lynq/](https://hogekai.github.io/lynq/)
39
+
40
+ ## License
41
+
42
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynq/store-redis",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Redis Store implementation for lynq MCP framework.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -14,7 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "dependencies": {
17
- "@lynq/lynq": "^0.8.0"
17
+ "@lynq/lynq": "^0.8.4"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "ioredis": "^5.0.0"