@stacksjs/cache 0.65.0 → 0.68.0

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,4 @@
1
+ import type { CacheDriver } from '@stacksjs/types';
2
+
3
+ declare const client: unknown;
4
+ export declare const memory: CacheDriver;
@@ -0,0 +1,4 @@
1
+ import type { CacheDriver } from '@stacksjs/types';
2
+
3
+ declare const client: unknown;
4
+ export declare const redis: CacheDriver;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/cache",
3
3
  "type": "module",
4
- "version": "0.65.0",
4
+ "version": "0.68.0",
5
5
  "description": "Caching the Stacks way.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],
@@ -26,30 +26,28 @@
26
26
  ],
27
27
  "exports": {
28
28
  ".": {
29
- "bun": "./src/index.ts",
30
29
  "import": "./dist/index.js"
31
30
  },
32
31
  "./*": {
33
- "bun": "./src/*",
34
32
  "import": "./dist/*"
35
33
  }
36
34
  },
37
35
  "module": "dist/index.js",
38
36
  "types": "dist/index.d.ts",
39
- "files": ["README.md", "dist", "src"],
37
+ "files": ["README.md", "dist"],
40
38
  "scripts": {
41
39
  "build": "bun build.ts",
42
40
  "typecheck": "bun tsc --noEmit",
43
41
  "prepublishOnly": "bun run build"
44
42
  },
45
43
  "dependencies": {
46
- "@aws-sdk/client-dynamodb": "^3.668.0",
47
- "@stacksjs/config": "0.64.6",
44
+ "@aws-sdk/client-dynamodb": "^3.679.0",
45
+ "@stacksjs/config": "0.67.0",
48
46
  "bentocache": "^1.0.0-beta.9",
49
47
  "ioredis": "^5.4.1"
50
48
  },
51
49
  "devDependencies": {
52
- "@stacksjs/development": "0.64.6",
50
+ "@stacksjs/development": "0.67.0",
53
51
  "dynamodb-tooling": "^0.3.2"
54
52
  }
55
53
  }
@@ -1,2 +0,0 @@
1
- import type { CacheDriver } from "./type";
2
- export declare const dynamodb: CacheDriver;
@@ -1,2 +0,0 @@
1
- import type { CacheDriver } from "./type";
2
- export declare const fileSystem: CacheDriver;
@@ -1,2 +0,0 @@
1
- import type { CacheDriver } from "./type";
2
- export declare const cache: CacheDriver;
@@ -1,2 +0,0 @@
1
- import type { CacheDriver } from "./type";
2
- export declare const memory: CacheDriver;
@@ -1,2 +0,0 @@
1
- import type { CacheDriver } from "./type";
2
- export declare const redis: CacheDriver;
@@ -1,16 +0,0 @@
1
- import type { BentoCache } from "bentocache";
2
- export interface CacheDriver {
3
- set: (key: string, value: string, ttl?: number) => Promise<void>;
4
- setForever: (key: string, value: string, ttl?: number) => Promise<void>;
5
- get: (key: string) => Promise<string | undefined | null>;
6
- getOrSet: (key: string, value: string) => Promise<string | undefined | null>;
7
- remove: (key: string) => Promise<void>;
8
- has: (key: string) => Promise<boolean>;
9
- missing: (key: string) => Promise<boolean>;
10
- del: (key: string) => Promise<void>;
11
- deleteMany: (keys: string[]) => Promise<void>;
12
- clear: () => Promise<void>;
13
- deleteAll: () => Promise<void>;
14
- disconnect: () => Promise<void>;
15
- client: BentoCache<Record<string, any>>;
16
- }