@stacksjs/cache 0.56.35 → 0.57.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 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export * as redis from './redis';
2
+ export * as dynamodb from './dynamodb';
3
+ export * as memcached from './memcached';
4
+ export * as upstash from './upstash';
@@ -0,0 +1,4 @@
1
+ export * as redis from "./redis.mjs";
2
+ export * as dynamodb from "./dynamodb.mjs";
3
+ export * as memcached from "./memcached.mjs";
4
+ export * as upstash from "./upstash.mjs";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
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,6 +1,5 @@
1
- import { createClient } from 'redis';
2
- import { cache } from '@stacksjs/config';
3
-
1
+ import { createClient } from "redis";
2
+ import { cache } from "@stacksjs/config";
4
3
  const client = createClient({
5
4
  socket: {
6
5
  host: cache.drivers?.redis?.host,
@@ -27,16 +26,4 @@ async function flushAll() {
27
26
  async function flushDB() {
28
27
  await client.sendCommand(["FLUSHDB", "ASYNC"]);
29
28
  }
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 };
29
+ export { set, get, remove, del, flushAll, flushDB, client };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1 @@
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';
1
+ export * from './drivers';
package/dist/index.mjs CHANGED
@@ -1,6 +1 @@
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';
1
+ export * from "./drivers/index.mjs";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/cache",
3
3
  "type": "module",
4
- "version": "0.56.35",
5
- "packageManager": "pnpm@8.6.5",
4
+ "version": "0.57.3",
5
+ "packageManager": "pnpm@8.6.6",
6
6
  "description": "The Stacks way of caching.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -30,22 +30,6 @@
30
30
  ".": {
31
31
  "types": "./dist/index.d.ts",
32
32
  "import": "./dist/index.mjs"
33
- },
34
- "./dynamodb": {
35
- "types": "./dist/dynamodb.d.ts",
36
- "import": "./dist/dynamodb.mjs"
37
- },
38
- "./memcached": {
39
- "types": "./dist/dynamodb.d.ts",
40
- "import": "./dist/dynamodb.mjs"
41
- },
42
- "./redis": {
43
- "types": "./dist/dynamodb.d.ts",
44
- "import": "./dist/dynamodb.mjs"
45
- },
46
- "./upstash": {
47
- "types": "./dist/dynamodb.d.ts",
48
- "import": "./dist/dynamodb.mjs"
49
33
  }
50
34
  },
51
35
  "module": "dist/index.mjs",
@@ -58,15 +42,15 @@
58
42
  "README.md"
59
43
  ],
60
44
  "peerDependencies": {
61
- "@aws-sdk/client-dynamodb": "^3.360.0",
45
+ "@aws-sdk/client-dynamodb": "^3.363.0",
62
46
  "@types/memjs": "^1.3.0",
63
47
  "memcached": "^2.2.2",
64
48
  "memjs": "^1.3.1",
65
49
  "redis": "^4.6.7",
66
- "@stacksjs/config": "0.56.35"
50
+ "@stacksjs/config": "0.57.3"
67
51
  },
68
52
  "devDependencies": {
69
- "@stacksjs/development": "0.56.35"
53
+ "@stacksjs/development": "0.57.3"
70
54
  },
71
55
  "scripts": {
72
56
  "build": "unbuild",
@@ -1,6 +0,0 @@
1
- declare namespace dynamodb {
2
- export {
3
- };
4
- }
5
-
6
- export { dynamodb as d };
package/dist/dynamodb.mjs DELETED
@@ -1,5 +0,0 @@
1
- const dynamodb = {
2
- __proto__: null
3
- };
4
-
5
- export { dynamodb as d };
@@ -1,6 +0,0 @@
1
- declare namespace memcached {
2
- export {
3
- };
4
- }
5
-
6
- export { memcached as m };
@@ -1,5 +0,0 @@
1
- const memcached = {
2
- __proto__: null
3
- };
4
-
5
- export { memcached as m };
@@ -1,30 +0,0 @@
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 };
package/dist/redis.d.ts DELETED
@@ -1,2 +0,0 @@
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 DELETED
@@ -1,3 +0,0 @@
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';
package/dist/upstash.d.ts DELETED
@@ -1,6 +0,0 @@
1
- declare namespace upstash {
2
- export {
3
- };
4
- }
5
-
6
- export { upstash as u };
package/dist/upstash.mjs DELETED
@@ -1,5 +0,0 @@
1
- const upstash = {
2
- __proto__: null
3
- };
4
-
5
- export { upstash as u };