@frontmcp/plugin-cache 1.9.0 → 1.9.1-rc.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.
- package/esm/index.mjs +4 -6
- package/esm/package.json +3 -3
- package/index.js +4 -6
- package/package.json +3 -3
package/esm/index.mjs
CHANGED
|
@@ -3070,7 +3070,7 @@ var init_vercel_kv = __esm({
|
|
|
3070
3070
|
if (!url || !token) {
|
|
3071
3071
|
throw new StorageConfigError("vercel-kv", "URL and token are required");
|
|
3072
3072
|
}
|
|
3073
|
-
this.client = createClient({ url, token, cache: void 0 });
|
|
3073
|
+
this.client = createClient({ url, token, cache: void 0, automaticDeserialization: false });
|
|
3074
3074
|
await this.client.exists("__healthcheck__");
|
|
3075
3075
|
this.connected = true;
|
|
3076
3076
|
} catch (e) {
|
|
@@ -3111,8 +3111,7 @@ var init_vercel_kv = __esm({
|
|
|
3111
3111
|
// Core Operations
|
|
3112
3112
|
// ============================================
|
|
3113
3113
|
async get(key) {
|
|
3114
|
-
|
|
3115
|
-
return result;
|
|
3114
|
+
return this.getConnectedClient().get(this.prefixKey(key));
|
|
3116
3115
|
}
|
|
3117
3116
|
async doSet(key, value, options) {
|
|
3118
3117
|
const client = this.getConnectedClient();
|
|
@@ -3296,7 +3295,7 @@ var init_upstash = __esm({
|
|
|
3296
3295
|
if (!url || !token) {
|
|
3297
3296
|
throw new StorageConfigError("upstash", "URL and token are required");
|
|
3298
3297
|
}
|
|
3299
|
-
this.client = new Redis2({ url, token });
|
|
3298
|
+
this.client = new Redis2({ url, token, automaticDeserialization: false });
|
|
3300
3299
|
await this.client.exists("__healthcheck__");
|
|
3301
3300
|
this.connected = true;
|
|
3302
3301
|
} catch (e) {
|
|
@@ -3343,8 +3342,7 @@ var init_upstash = __esm({
|
|
|
3343
3342
|
// Core Operations
|
|
3344
3343
|
// ============================================
|
|
3345
3344
|
async get(key) {
|
|
3346
|
-
|
|
3347
|
-
return result;
|
|
3345
|
+
return this.getConnectedClient().get(this.prefixKey(key));
|
|
3348
3346
|
}
|
|
3349
3347
|
async doSet(key, value, options) {
|
|
3350
3348
|
const client = this.getConnectedClient();
|
package/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/plugin-cache",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1-rc.1",
|
|
4
4
|
"description": "Cache plugin for FrontMCP - Redis, Vercel KV, and in-memory caching with automatic tool result caching",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@frontmcp/sdk": "1.9.
|
|
52
|
-
"@frontmcp/utils": "1.9.
|
|
51
|
+
"@frontmcp/sdk": "1.9.1-rc.1",
|
|
52
|
+
"@frontmcp/utils": "1.9.1-rc.1",
|
|
53
53
|
"ioredis": "^5.8.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
package/index.js
CHANGED
|
@@ -3069,7 +3069,7 @@ var init_vercel_kv = __esm({
|
|
|
3069
3069
|
if (!url || !token) {
|
|
3070
3070
|
throw new StorageConfigError("vercel-kv", "URL and token are required");
|
|
3071
3071
|
}
|
|
3072
|
-
this.client = createClient({ url, token, cache: void 0 });
|
|
3072
|
+
this.client = createClient({ url, token, cache: void 0, automaticDeserialization: false });
|
|
3073
3073
|
await this.client.exists("__healthcheck__");
|
|
3074
3074
|
this.connected = true;
|
|
3075
3075
|
} catch (e) {
|
|
@@ -3110,8 +3110,7 @@ var init_vercel_kv = __esm({
|
|
|
3110
3110
|
// Core Operations
|
|
3111
3111
|
// ============================================
|
|
3112
3112
|
async get(key) {
|
|
3113
|
-
|
|
3114
|
-
return result;
|
|
3113
|
+
return this.getConnectedClient().get(this.prefixKey(key));
|
|
3115
3114
|
}
|
|
3116
3115
|
async doSet(key, value, options) {
|
|
3117
3116
|
const client = this.getConnectedClient();
|
|
@@ -3295,7 +3294,7 @@ var init_upstash = __esm({
|
|
|
3295
3294
|
if (!url || !token) {
|
|
3296
3295
|
throw new StorageConfigError("upstash", "URL and token are required");
|
|
3297
3296
|
}
|
|
3298
|
-
this.client = new Redis2({ url, token });
|
|
3297
|
+
this.client = new Redis2({ url, token, automaticDeserialization: false });
|
|
3299
3298
|
await this.client.exists("__healthcheck__");
|
|
3300
3299
|
this.connected = true;
|
|
3301
3300
|
} catch (e) {
|
|
@@ -3342,8 +3341,7 @@ var init_upstash = __esm({
|
|
|
3342
3341
|
// Core Operations
|
|
3343
3342
|
// ============================================
|
|
3344
3343
|
async get(key) {
|
|
3345
|
-
|
|
3346
|
-
return result;
|
|
3344
|
+
return this.getConnectedClient().get(this.prefixKey(key));
|
|
3347
3345
|
}
|
|
3348
3346
|
async doSet(key, value, options) {
|
|
3349
3347
|
const client = this.getConnectedClient();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/plugin-cache",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1-rc.1",
|
|
4
4
|
"description": "Cache plugin for FrontMCP - Redis, Vercel KV, and in-memory caching with automatic tool result caching",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@frontmcp/sdk": "1.9.
|
|
52
|
-
"@frontmcp/utils": "1.9.
|
|
51
|
+
"@frontmcp/sdk": "1.9.1-rc.1",
|
|
52
|
+
"@frontmcp/utils": "1.9.1-rc.1",
|
|
53
53
|
"ioredis": "^5.8.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|