@stacksjs/cache 0.53.1 → 0.56.3

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.
@@ -0,0 +1,6 @@
1
+ declare namespace dynamodb {
2
+ export {
3
+ };
4
+ }
5
+
6
+ export { dynamodb as d };
@@ -0,0 +1,5 @@
1
+ const dynamodb = {
2
+ __proto__: null
3
+ };
4
+
5
+ export { dynamodb as d };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export * as redis from './drivers/redis';
2
- export * as memcached from './drivers/memcached';
3
- export * as dynamodb from './drivers/dynamodb';
4
- export * as upstash from './drivers/upstash';
1
+ export { r as redis } from './redis-af20e529.js';
2
+ export { m as memcached } from './memcached.js';
3
+ export { d as dynamodb } from './dynamodb.js';
4
+ export { u as upstash } from './upstash.js';
5
+ import 'redis';
package/dist/index.mjs CHANGED
@@ -1,4 +1,6 @@
1
- export * as redis from "./drivers/redis.mjs";
2
- export * as memcached from "./drivers/memcached.mjs";
3
- export * as dynamodb from "./drivers/dynamodb.mjs";
4
- export * as upstash from "./drivers/upstash.mjs";
1
+ export { r as redis } from './shared/cache.643bd2b7.mjs';
2
+ export { m as memcached } from './memcached.mjs';
3
+ export { d as dynamodb } from './dynamodb.mjs';
4
+ export { u as upstash } from './upstash.mjs';
5
+ import 'redis';
6
+ import '@stacksjs/config';
@@ -0,0 +1,6 @@
1
+ declare namespace memcached {
2
+ export {
3
+ };
4
+ }
5
+
6
+ export { memcached as m };
@@ -0,0 +1,5 @@
1
+ const memcached = {
2
+ __proto__: null
3
+ };
4
+
5
+ export { memcached as m };
@@ -0,0 +1,30 @@
1
+ import { RedisClientType } from 'redis';
2
+
3
+ declare const client: RedisClientType;
4
+ declare function set(key: string, value: any): Promise<void>;
5
+ declare function get(key: string): Promise<any>;
6
+ declare function remove(key: string): Promise<void>;
7
+ declare function del(key: string): Promise<void>;
8
+ declare function flushAll(): Promise<void>;
9
+ declare function flushDB(): Promise<void>;
10
+
11
+ declare const redis_client: typeof client;
12
+ declare const redis_del: typeof del;
13
+ declare const redis_flushAll: typeof flushAll;
14
+ declare const redis_flushDB: typeof flushDB;
15
+ declare const redis_get: typeof get;
16
+ declare const redis_remove: typeof remove;
17
+ declare const redis_set: typeof set;
18
+ declare namespace redis {
19
+ export {
20
+ redis_client as client,
21
+ redis_del as del,
22
+ redis_flushAll as flushAll,
23
+ redis_flushDB as flushDB,
24
+ redis_get as get,
25
+ redis_remove as remove,
26
+ redis_set as set,
27
+ };
28
+ }
29
+
30
+ export { remove as a, flushDB as b, client as c, del as d, flushAll as f, get as g, redis as r, set as s };
@@ -0,0 +1,2 @@
1
+ import 'redis';
2
+ export { c as client, d as del, f as flushAll, b as flushDB, g as get, a as remove, s as set } from './redis-af20e529.js';
package/dist/redis.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import 'redis';
2
+ import '@stacksjs/config';
3
+ export { c as client, d as del, f as flushAll, b as flushDB, g as get, a as remove, s as set } from './shared/cache.643bd2b7.mjs';
@@ -1,5 +1,6 @@
1
- import { createClient } from "redis";
2
- import { cache } from "@stacksjs/config";
1
+ import { createClient } from 'redis';
2
+ import { cache } from '@stacksjs/config';
3
+
3
4
  const client = createClient({
4
5
  socket: {
5
6
  host: cache.drivers?.redis?.host,
@@ -26,4 +27,16 @@ async function flushAll() {
26
27
  async function flushDB() {
27
28
  await client.sendCommand(["FLUSHDB", "ASYNC"]);
28
29
  }
29
- export { set, get, remove, del, flushAll, flushDB, client };
30
+
31
+ const redis = {
32
+ __proto__: null,
33
+ client: client,
34
+ del: del,
35
+ flushAll: flushAll,
36
+ flushDB: flushDB,
37
+ get: get,
38
+ remove: remove,
39
+ set: set
40
+ };
41
+
42
+ export { remove as a, flushDB as b, client as c, del as d, flushAll as f, get as g, redis as r, set as s };
@@ -0,0 +1,6 @@
1
+ declare namespace upstash {
2
+ export {
3
+ };
4
+ }
5
+
6
+ export { upstash as u };
@@ -0,0 +1,5 @@
1
+ const upstash = {
2
+ __proto__: null
3
+ };
4
+
5
+ export { upstash as u };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/cache",
3
3
  "type": "module",
4
- "version": "0.53.1",
5
- "packageManager": "pnpm@8.5.1",
4
+ "version": "0.56.3",
5
+ "packageManager": "pnpm@8.6.5",
6
6
  "description": "The Stacks way of caching.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -31,21 +31,21 @@
31
31
  "types": "./dist/index.d.ts",
32
32
  "import": "./dist/index.mjs"
33
33
  },
34
- "./drivers/dynamodb": {
35
- "types": "./dist/drivers/dynamodb.d.ts",
36
- "import": "./dist/drivers/dynamodb.mjs"
34
+ "./dynamodb": {
35
+ "types": "./dist/dynamodb.d.ts",
36
+ "import": "./dist/dynamodb.mjs"
37
37
  },
38
- "./drivers/memcached": {
39
- "types": "./dist/drivers/dynamodb.d.ts",
40
- "import": "./dist/drivers/dynamodb.mjs"
38
+ "./memcached": {
39
+ "types": "./dist/dynamodb.d.ts",
40
+ "import": "./dist/dynamodb.mjs"
41
41
  },
42
- "./drivers/redis": {
43
- "types": "./dist/drivers/dynamodb.d.ts",
44
- "import": "./dist/drivers/dynamodb.mjs"
42
+ "./redis": {
43
+ "types": "./dist/dynamodb.d.ts",
44
+ "import": "./dist/dynamodb.mjs"
45
45
  },
46
- "./drivers/upstash": {
47
- "types": "./dist/drivers/dynamodb.d.ts",
48
- "import": "./dist/drivers/dynamodb.mjs"
46
+ "./upstash": {
47
+ "types": "./dist/dynamodb.d.ts",
48
+ "import": "./dist/dynamodb.mjs"
49
49
  }
50
50
  },
51
51
  "module": "dist/index.mjs",
@@ -58,15 +58,15 @@
58
58
  "README.md"
59
59
  ],
60
60
  "peerDependencies": {
61
- "@aws-sdk/client-dynamodb": "^3.338.0",
61
+ "@aws-sdk/client-dynamodb": "^3.360.0",
62
62
  "@types/memjs": "^1.3.0",
63
63
  "memcached": "^2.2.2",
64
64
  "memjs": "^1.3.1",
65
- "redis": "^4.6.6",
66
- "@stacksjs/config": "0.53.1"
65
+ "redis": "^4.6.7",
66
+ "@stacksjs/config": "0.56.3"
67
67
  },
68
68
  "devDependencies": {
69
- "@stacksjs/development": "0.53.1"
69
+ "@stacksjs/development": "0.56.3"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "unbuild",
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import type { RedisClientType } from 'redis';
2
- declare const client: RedisClientType;
3
- declare function set(key: string, value: any): Promise<void>;
4
- declare function get(key: string): Promise<any>;
5
- declare function remove(key: string): Promise<void>;
6
- declare function del(key: string): Promise<void>;
7
- declare function flushAll(): Promise<void>;
8
- declare function flushDB(): Promise<void>;
9
- export { set, get, remove, del, flushAll, flushDB, client };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};