@adonisjs/cache 1.1.2 → 1.2.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.
- package/README.md +2 -2
- package/build/commands/cache_clear.d.ts +4 -0
- package/build/commands/cache_clear.js +16 -1
- package/build/commands/cache_clear.js.map +1 -1
- package/build/commands/cache_delete.d.ts +21 -0
- package/build/commands/commands.json +1 -1
- package/build/index.js +2 -2
- package/build/metafile-esm.json +1 -1
- package/build/providers/cache_provider.js +1 -1
- package/build/src/store.d.ts +1 -1
- package/package.json +22 -21
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url]
|
|
6
6
|
|
|
7
7
|
## Introduction
|
|
8
|
-
Cache module for AdonisJS built on top of [
|
|
8
|
+
Cache module for AdonisJS built on top of [Bentocache](https://github.com/Julien-R44/bentocache). Support multiples drivers, File, In-Memory, Redis, SQLs databases and more.
|
|
9
9
|
|
|
10
10
|
## Official Documentation
|
|
11
11
|
The documentation is available on the [AdonisJS website](https://docs.adonisjs.com/guides/digging-deeper/cache).
|
|
@@ -19,7 +19,7 @@ We encourage you to read the [contribution guide](https://github.com/adonisjs/.g
|
|
|
19
19
|
In order to ensure that the AdonisJS community is welcoming to all, please review and abide by the [Code of Conduct](https://github.com/adonisjs/.github/blob/main/docs/CODE_OF_CONDUCT.md).
|
|
20
20
|
|
|
21
21
|
## License
|
|
22
|
-
AdonisJS
|
|
22
|
+
AdonisJS Cache is open-sourced software licensed under the [MIT license](LICENSE.md).
|
|
23
23
|
|
|
24
24
|
[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/adonisjs/cache/checks.yml?branch=1.x&style=for-the-badge
|
|
25
25
|
[gh-workflow-url]: https://github.com/adonisjs/cache/actions/workflows/checks.yml "Github action"
|
|
@@ -14,6 +14,10 @@ export default class CacheClear extends BaseCommand {
|
|
|
14
14
|
* Optionally select a namespace to clear. Defaults to the whole cache.
|
|
15
15
|
*/
|
|
16
16
|
namespace: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optionally specify tags to invalidate. Can be used multiple times.
|
|
19
|
+
*/
|
|
20
|
+
tags: string[];
|
|
17
21
|
/**
|
|
18
22
|
* Handle command
|
|
19
23
|
*/
|
|
@@ -45,12 +45,24 @@ var CacheClear = class extends BaseCommand {
|
|
|
45
45
|
this.exitCode = 1;
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
|
+
if (this.namespace && this.tags && this.tags.length > 0) {
|
|
49
|
+
this.logger.error(
|
|
50
|
+
"Cannot use --namespace and --tags options together. Please choose one or the other."
|
|
51
|
+
);
|
|
52
|
+
this.exitCode = 1;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
48
55
|
if (this.app.inProduction) {
|
|
49
56
|
const shouldClear = await this.#takeProductionConsent();
|
|
50
57
|
if (!shouldClear) return;
|
|
51
58
|
}
|
|
52
59
|
const cacheHandler = cache.use(this.store);
|
|
53
|
-
if (this.
|
|
60
|
+
if (this.tags && this.tags.length > 0) {
|
|
61
|
+
await cacheHandler.deleteByTag({ tags: this.tags });
|
|
62
|
+
this.logger.success(
|
|
63
|
+
`Invalidated tags [${this.tags.join(", ")}] for "${this.store}" cache successfully`
|
|
64
|
+
);
|
|
65
|
+
} else if (this.namespace) {
|
|
54
66
|
await cacheHandler.namespace(this.namespace).clear();
|
|
55
67
|
this.logger.success(
|
|
56
68
|
`Cleared namespace "${this.namespace}" for "${this.store}" cache successfully`
|
|
@@ -67,6 +79,9 @@ __decorateClass([
|
|
|
67
79
|
__decorateClass([
|
|
68
80
|
flags.string({ description: "Select a cache namespace to clear", alias: "n" })
|
|
69
81
|
], CacheClear.prototype, "namespace", 2);
|
|
82
|
+
__decorateClass([
|
|
83
|
+
flags.array({ description: "Specify tags to invalidate", alias: "t" })
|
|
84
|
+
], CacheClear.prototype, "tags", 2);
|
|
70
85
|
export {
|
|
71
86
|
CacheClear as default
|
|
72
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../commands/cache_clear.ts"],"sourcesContent":["/*\n * @adonisjs/cache\n *\n * (c) AdonisJS\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nimport { args, BaseCommand, flags } from '@adonisjs/core/ace'\n\nimport { CacheService } from '../src/types.js'\nimport { CommandOptions } from '@adonisjs/core/types/ace'\n\nexport default class CacheClear extends BaseCommand {\n static commandName = 'cache:clear'\n static description = 'Clear the application cache'\n static options: CommandOptions = {\n startApp: true,\n }\n\n /**\n * Choose a custom cache store to clear. Otherwise, we use the\n * default one\n */\n @args.string({ description: 'Define a custom cache store to clear', required: false })\n declare store: string\n\n /**\n * Optionally select a namespace to clear. Defaults to the whole cache.\n */\n @flags.string({ description: 'Select a cache namespace to clear', alias: 'n' })\n declare namespace: string\n\n /**\n * Prompts to take consent when clearing the cache in production\n */\n async #takeProductionConsent(): Promise<boolean> {\n const question = 'You are in production environment. Want to continue clearing the cache?'\n try {\n return await this.prompt.confirm(question)\n } catch (error) {\n return false\n }\n }\n\n /**\n * Check if the given cache exist\n */\n #cacheExists(cache: CacheService, cacheName: string) {\n try {\n cache.use(cacheName)\n return true\n } catch (error) {\n return false\n }\n }\n\n /**\n * Handle command\n */\n async run() {\n const cache = await this.app.container.make('cache.manager')\n this.store = this.store || cache.defaultStoreName\n\n /**\n * Exit if cache store doesn't exist\n */\n if (!this.#cacheExists(cache, this.store)) {\n this.logger.error(\n `\"${this.store}\" is not a valid cache store. Double check config/cache.ts file`\n )\n this.exitCode = 1\n return\n }\n\n /**\n * Take consent when clearing the cache in production\n */\n if (this.app.inProduction) {\n const shouldClear = await this.#takeProductionConsent()\n if (!shouldClear) return\n }\n\n /**\n * Finally clear the cache\n */\n const cacheHandler = cache.use(this.store)\n if (this.namespace) {\n await cacheHandler.namespace(this.namespace).clear()\n this.logger.success(\n `Cleared namespace \"${this.namespace}\" for \"${this.store}\" cache successfully`\n )\n } else {\n await cacheHandler.clear()\n this.logger.success(`Cleared \"${this.store}\" cache successfully`)\n }\n }\n}\n"],"mappings":";;;;;AASA,SAAS,MAAM,aAAa,aAAa;AAKzC,IAAqB,aAArB,cAAwC,YAAY;AAAA,EAClD,OAAO,cAAc;AAAA,EACrB,OAAO,cAAc;AAAA,EACrB,OAAO,UAA0B;AAAA,IAC/B,UAAU;AAAA,EACZ;AAAA;AAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../commands/cache_clear.ts"],"sourcesContent":["/*\n * @adonisjs/cache\n *\n * (c) AdonisJS\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nimport { args, BaseCommand, flags } from '@adonisjs/core/ace'\n\nimport { CacheService } from '../src/types.js'\nimport { CommandOptions } from '@adonisjs/core/types/ace'\n\nexport default class CacheClear extends BaseCommand {\n static commandName = 'cache:clear'\n static description = 'Clear the application cache'\n static options: CommandOptions = {\n startApp: true,\n }\n\n /**\n * Choose a custom cache store to clear. Otherwise, we use the\n * default one\n */\n @args.string({ description: 'Define a custom cache store to clear', required: false })\n declare store: string\n\n /**\n * Optionally select a namespace to clear. Defaults to the whole cache.\n */\n @flags.string({ description: 'Select a cache namespace to clear', alias: 'n' })\n declare namespace: string\n\n /**\n * Optionally specify tags to invalidate. Can be used multiple times.\n */\n @flags.array({ description: 'Specify tags to invalidate', alias: 't' })\n declare tags: string[]\n\n /**\n * Prompts to take consent when clearing the cache in production\n */\n async #takeProductionConsent(): Promise<boolean> {\n const question = 'You are in production environment. Want to continue clearing the cache?'\n try {\n return await this.prompt.confirm(question)\n } catch (error) {\n return false\n }\n }\n\n /**\n * Check if the given cache exist\n */\n #cacheExists(cache: CacheService, cacheName: string) {\n try {\n cache.use(cacheName)\n return true\n } catch (error) {\n return false\n }\n }\n\n /**\n * Handle command\n */\n async run() {\n const cache = await this.app.container.make('cache.manager')\n this.store = this.store || cache.defaultStoreName\n\n /**\n * Exit if cache store doesn't exist\n */\n if (!this.#cacheExists(cache, this.store)) {\n this.logger.error(\n `\"${this.store}\" is not a valid cache store. Double check config/cache.ts file`\n )\n this.exitCode = 1\n return\n }\n\n /**\n * Validate that namespace and tags are not used together\n */\n if (this.namespace && this.tags && this.tags.length > 0) {\n this.logger.error(\n 'Cannot use --namespace and --tags options together. Please choose one or the other.'\n )\n this.exitCode = 1\n return\n }\n\n /**\n * Take consent when clearing the cache in production\n */\n if (this.app.inProduction) {\n const shouldClear = await this.#takeProductionConsent()\n if (!shouldClear) return\n }\n\n /**\n * Finally clear the cache\n */\n const cacheHandler = cache.use(this.store)\n\n if (this.tags && this.tags.length > 0) {\n await cacheHandler.deleteByTag({ tags: this.tags })\n this.logger.success(\n `Invalidated tags [${this.tags.join(', ')}] for \"${this.store}\" cache successfully`\n )\n } else if (this.namespace) {\n await cacheHandler.namespace(this.namespace).clear()\n this.logger.success(\n `Cleared namespace \"${this.namespace}\" for \"${this.store}\" cache successfully`\n )\n } else {\n await cacheHandler.clear()\n this.logger.success(`Cleared \"${this.store}\" cache successfully`)\n }\n }\n}\n"],"mappings":";;;;;AASA,SAAS,MAAM,aAAa,aAAa;AAKzC,IAAqB,aAArB,cAAwC,YAAY;AAAA,EAClD,OAAO,cAAc;AAAA,EACrB,OAAO,cAAc;AAAA,EACrB,OAAO,UAA0B;AAAA,IAC/B,UAAU;AAAA,EACZ;AAAA;AAAA;AAAA;AAAA,EAwBA,MAAM,yBAA2C;AAC/C,UAAM,WAAW;AACjB,QAAI;AACF,aAAO,MAAM,KAAK,OAAO,QAAQ,QAAQ;AAAA,IAC3C,SAAS,OAAO;AACd,aAAO;AAAA,IACT;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAKA,aAAa,OAAqB,WAAmB;AACnD,QAAI;AACF,YAAM,IAAI,SAAS;AACnB,aAAO;AAAA,IACT,SAAS,OAAO;AACd,aAAO;AAAA,IACT;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAKA,MAAM,MAAM;AACV,UAAM,QAAQ,MAAM,KAAK,IAAI,UAAU,KAAK,eAAe;AAC3D,SAAK,QAAQ,KAAK,SAAS,MAAM;AAKjC,QAAI,CAAC,KAAK,aAAa,OAAO,KAAK,KAAK,GAAG;AACzC,WAAK,OAAO;AAAA,QACV,IAAI,KAAK,KAAK;AAAA,MAChB;AACA,WAAK,WAAW;AAChB;AAAA,IACF;AAKA,QAAI,KAAK,aAAa,KAAK,QAAQ,KAAK,KAAK,SAAS,GAAG;AACvD,WAAK,OAAO;AAAA,QACV;AAAA,MACF;AACA,WAAK,WAAW;AAChB;AAAA,IACF;AAKA,QAAI,KAAK,IAAI,cAAc;AACzB,YAAM,cAAc,MAAM,KAAK,uBAAuB;AACtD,UAAI,CAAC,YAAa;AAAA,IACpB;AAKA,UAAM,eAAe,MAAM,IAAI,KAAK,KAAK;AAEzC,QAAI,KAAK,QAAQ,KAAK,KAAK,SAAS,GAAG;AACrC,YAAM,aAAa,YAAY,EAAE,MAAM,KAAK,KAAK,CAAC;AAClD,WAAK,OAAO;AAAA,QACV,qBAAqB,KAAK,KAAK,KAAK,IAAI,CAAC,UAAU,KAAK,KAAK;AAAA,MAC/D;AAAA,IACF,WAAW,KAAK,WAAW;AACzB,YAAM,aAAa,UAAU,KAAK,SAAS,EAAE,MAAM;AACnD,WAAK,OAAO;AAAA,QACV,sBAAsB,KAAK,SAAS,UAAU,KAAK,KAAK;AAAA,MAC1D;AAAA,IACF,OAAO;AACL,YAAM,aAAa,MAAM;AACzB,WAAK,OAAO,QAAQ,YAAY,KAAK,KAAK,sBAAsB;AAAA,IAClE;AAAA,EACF;AACF;AA/FU;AAAA,EADP,KAAK,OAAO,EAAE,aAAa,wCAAwC,UAAU,MAAM,CAAC;AAAA,GAXlE,WAYX;AAMA;AAAA,EADP,MAAM,OAAO,EAAE,aAAa,qCAAqC,OAAO,IAAI,CAAC;AAAA,GAjB3D,WAkBX;AAMA;AAAA,EADP,MAAM,MAAM,EAAE,aAAa,8BAA8B,OAAO,IAAI,CAAC;AAAA,GAvBnD,WAwBX;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseCommand } from '@adonisjs/core/ace';
|
|
2
|
+
import { CommandOptions } from '@adonisjs/core/types/ace';
|
|
3
|
+
export default class CacheDelete extends BaseCommand {
|
|
4
|
+
#private;
|
|
5
|
+
static commandName: string;
|
|
6
|
+
static description: string;
|
|
7
|
+
static options: CommandOptions;
|
|
8
|
+
/**
|
|
9
|
+
* The cache key to delete
|
|
10
|
+
*/
|
|
11
|
+
key: string;
|
|
12
|
+
/**
|
|
13
|
+
* Choose a custom cache store to delete from. Otherwise, we use the
|
|
14
|
+
* default one
|
|
15
|
+
*/
|
|
16
|
+
store: string;
|
|
17
|
+
/**
|
|
18
|
+
* Handle command
|
|
19
|
+
*/
|
|
20
|
+
run(): Promise<void>;
|
|
21
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"commands":[{"commandName":"cache:clear","description":"Clear the application cache","help":"","namespace":"cache","aliases":[],"flags":[{"name":"namespace","flagName":"namespace","required":false,"type":"string","description":"Select a cache namespace to clear","alias":"n"}],"args":[{"name":"store","argumentName":"store","required":false,"description":"Define a custom cache store to clear","type":"string"}],"options":{"startApp":true},"filePath":"cache_clear.js"}],"version":1}
|
|
1
|
+
{"commands":[{"commandName":"cache:clear","description":"Clear the application cache","help":"","namespace":"cache","aliases":[],"flags":[{"name":"namespace","flagName":"namespace","required":false,"type":"string","description":"Select a cache namespace to clear","alias":"n"},{"name":"tags","flagName":"tags","required":false,"type":"array","description":"Specify tags to invalidate","alias":"t"}],"args":[{"name":"store","argumentName":"store","required":false,"description":"Define a custom cache store to clear","type":"string"}],"options":{"startApp":true},"filePath":"cache_clear.js"}],"version":1}
|
package/build/index.js
CHANGED
|
@@ -56,8 +56,8 @@ var Store = class {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
// stubs/main.ts
|
|
59
|
-
import { dirname } from "
|
|
60
|
-
import { fileURLToPath } from "
|
|
59
|
+
import { dirname } from "path";
|
|
60
|
+
import { fileURLToPath } from "url";
|
|
61
61
|
var stubsRoot = dirname(fileURLToPath(import.meta.url));
|
|
62
62
|
|
|
63
63
|
// configure.ts
|
package/build/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/store.ts":{"bytes":2107,"imports":[{"path":"bentocache","kind":"import-statement","external":true},{"path":"@adonisjs/core","kind":"import-statement","external":true},{"path":"bentocache/types","kind":"import-statement","external":true}],"format":"esm"},"stubs/main.ts":{"bytes":319,"imports":[{"path":"
|
|
1
|
+
{"inputs":{"src/store.ts":{"bytes":2107,"imports":[{"path":"bentocache","kind":"import-statement","external":true},{"path":"@adonisjs/core","kind":"import-statement","external":true},{"path":"bentocache/types","kind":"import-statement","external":true}],"format":"esm"},"stubs/main.ts":{"bytes":319,"imports":[{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true}],"format":"esm"},"configure.ts":{"bytes":1883,"imports":[{"path":"stubs/main.ts","kind":"import-statement","original":"./stubs/main.js"}],"format":"esm"},"src/define_config.ts":{"bytes":473,"imports":[{"path":"./store.js","kind":"import-statement","external":true},{"path":"./types.js","kind":"import-statement","external":true}],"format":"esm"},"src/drivers.ts":{"bytes":4713,"imports":[{"path":"@adonisjs/core","kind":"import-statement","external":true},{"path":"bentocache/types","kind":"import-statement","external":true},{"path":"@adonisjs/core/exceptions","kind":"import-statement","external":true},{"path":"bentocache/drivers/redis","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/redis","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/memory","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/knex","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/dynamodb","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/file","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/kysely","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/orchid","kind":"dynamic-import","external":true}],"format":"esm"},"index.ts":{"bytes":383,"imports":[{"path":"bentocache","kind":"import-statement","external":true},{"path":"src/store.ts","kind":"import-statement","original":"./src/store.js"},{"path":"configure.ts","kind":"import-statement","original":"./configure.js"},{"path":"src/define_config.ts","kind":"import-statement","original":"./src/define_config.js"},{"path":"src/drivers.ts","kind":"import-statement","original":"./src/drivers.js"}],"format":"esm"},"commands/cache_clear.ts":{"bytes":3317,"imports":[{"path":"@adonisjs/core/ace","kind":"import-statement","external":true},{"path":"../src/types.js","kind":"import-statement","external":true},{"path":"@adonisjs/core/types/ace","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/bindings/repl.ts":{"bytes":910,"imports":[],"format":"esm"},"src/debug.ts":{"bytes":256,"imports":[{"path":"util","kind":"import-statement","external":true}],"format":"esm"},"src/bindings/edge.ts":{"bytes":474,"imports":[{"path":"src/debug.ts","kind":"import-statement","original":"../debug.js"},{"path":"../types.js","kind":"import-statement","external":true},{"path":"edge.js","kind":"dynamic-import","external":true}],"format":"esm"},"providers/cache_provider.ts":{"bytes":3079,"imports":[{"path":"../index.js","kind":"import-statement","external":true},{"path":"src/bindings/repl.ts","kind":"import-statement","original":"../src/bindings/repl.js"},{"path":"src/bindings/edge.ts","kind":"import-statement","original":"../src/bindings/edge.js"},{"path":"bentocache","kind":"dynamic-import","external":true}],"format":"esm"},"services/main.ts":{"bytes":476,"imports":[{"path":"@adonisjs/core/services/app","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":1047,"imports":[{"path":"bentocache/types","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"build/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":13928},"build/index.js":{"imports":[{"path":"build/chunk-EUXUH3YW.js","kind":"import-statement"},{"path":"bentocache","kind":"import-statement","external":true},{"path":"bentocache","kind":"import-statement","external":true},{"path":"@adonisjs/core","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"url","kind":"import-statement","external":true},{"path":"@adonisjs/core","kind":"import-statement","external":true},{"path":"@adonisjs/core/exceptions","kind":"import-statement","external":true},{"path":"bentocache/drivers/redis","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/redis","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/memory","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/knex","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/dynamodb","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/file","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/kysely","kind":"dynamic-import","external":true},{"path":"bentocache/drivers/orchid","kind":"dynamic-import","external":true}],"exports":["configure","defineConfig","drivers","store"],"entryPoint":"index.ts","inputs":{"index.ts":{"bytesInOutput":28},"src/store.ts":{"bytesInOutput":1304},"stubs/main.ts":{"bytesInOutput":126},"configure.ts":{"bytesInOutput":1170},"src/define_config.ts":{"bytesInOutput":51},"src/drivers.ts":{"bytesInOutput":3081}},"bytes":5959},"build/commands/cache_clear.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":5125},"build/commands/cache_clear.js":{"imports":[{"path":"build/chunk-EUXUH3YW.js","kind":"import-statement"},{"path":"@adonisjs/core/ace","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"commands/cache_clear.ts","inputs":{"commands/cache_clear.ts":{"bytesInOutput":2556}},"bytes":2678},"build/providers/cache_provider.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":6765},"build/providers/cache_provider.js":{"imports":[{"path":"build/chunk-EUXUH3YW.js","kind":"import-statement"},{"path":"util","kind":"import-statement","external":true},{"path":"edge.js","kind":"dynamic-import","external":true},{"path":"bentocache","kind":"dynamic-import","external":true}],"exports":["default"],"entryPoint":"providers/cache_provider.ts","inputs":{"src/bindings/repl.ts":{"bytesInOutput":443},"src/debug.ts":{"bytesInOutput":81},"src/bindings/edge.ts":{"bytesInOutput":211},"providers/cache_provider.ts":{"bytesInOutput":1658}},"bytes":2562},"build/services/main.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":718},"build/services/main.js":{"imports":[{"path":"build/chunk-EUXUH3YW.js","kind":"import-statement"},{"path":"@adonisjs/core/services/app","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"services/main.ts","inputs":{"services/main.ts":{"bytesInOutput":146}},"bytes":229},"build/chunk-EUXUH3YW.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"build/chunk-EUXUH3YW.js":{"imports":[],"exports":["__decorateClass"],"inputs":{},"bytes":524},"build/src/types.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1214},"build/src/types.js":{"imports":[{"path":"bentocache/types","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/types.ts","inputs":{"src/types.ts":{"bytesInOutput":34}},"bytes":50}}}
|
package/build/src/store.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export declare class Store {
|
|
|
30
30
|
* Create a config provider for the store
|
|
31
31
|
*/
|
|
32
32
|
entry(): ConfigProvider<{
|
|
33
|
-
"__#
|
|
33
|
+
"__#117@#private": any;
|
|
34
34
|
useL1Layer(driver: CreateDriverResult<L1CacheDriver>): /*elided*/ any;
|
|
35
35
|
useL2Layer(driver: CreateDriverResult<L2CacheDriver>): /*elided*/ any;
|
|
36
36
|
useBus(bus: CreateBusDriverResult): /*elided*/ any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/cache",
|
|
3
3
|
"description": "Official caching module for AdonisJS framework",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.6.0"
|
|
7
7
|
},
|
|
@@ -39,40 +39,40 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@adonisjs/assembler": "^7.8.2",
|
|
42
|
-
"@adonisjs/core": "^6.
|
|
43
|
-
"@adonisjs/eslint-config": "^2.
|
|
44
|
-
"@adonisjs/lucid": "^21.6.
|
|
45
|
-
"@adonisjs/prettier-config": "^1.4.
|
|
42
|
+
"@adonisjs/core": "^6.18.0",
|
|
43
|
+
"@adonisjs/eslint-config": "^2.1.0",
|
|
44
|
+
"@adonisjs/lucid": "^21.6.1",
|
|
45
|
+
"@adonisjs/prettier-config": "^1.4.5",
|
|
46
46
|
"@adonisjs/redis": "^9.2.0",
|
|
47
|
-
"@adonisjs/tsconfig": "^1.4.
|
|
47
|
+
"@adonisjs/tsconfig": "^1.4.1",
|
|
48
48
|
"@japa/assert": "^4.0.1",
|
|
49
49
|
"@japa/expect-type": "^2.0.3",
|
|
50
50
|
"@japa/file-system": "^2.3.2",
|
|
51
51
|
"@japa/runner": "^4.2.0",
|
|
52
52
|
"@japa/snapshot": "^2.0.8",
|
|
53
|
-
"@release-it/conventional-changelog": "^10.0.
|
|
54
|
-
"@swc/core": "^1.
|
|
55
|
-
"@types/node": "~
|
|
56
|
-
"better-sqlite3": "^11.
|
|
53
|
+
"@release-it/conventional-changelog": "^10.0.1",
|
|
54
|
+
"@swc/core": "^1.12.1",
|
|
55
|
+
"@types/node": "~24.0.1",
|
|
56
|
+
"better-sqlite3": "^11.10.0",
|
|
57
57
|
"c8": "^10.1.3",
|
|
58
58
|
"copyfiles": "^2.4.1",
|
|
59
59
|
"del-cli": "^6.0.0",
|
|
60
60
|
"edge.js": "^6.2.1",
|
|
61
|
-
"eslint": "^9.
|
|
62
|
-
"ioredis": "^5.
|
|
61
|
+
"eslint": "^9.29.0",
|
|
62
|
+
"ioredis": "^5.6.1",
|
|
63
63
|
"knex": "^3.1.0",
|
|
64
|
-
"luxon": "^3.
|
|
65
|
-
"mysql2": "^3.
|
|
64
|
+
"luxon": "^3.6.1",
|
|
65
|
+
"mysql2": "^3.14.1",
|
|
66
66
|
"p-event": "^6.0.1",
|
|
67
|
-
"pg": "^8.
|
|
68
|
-
"prettier": "^3.
|
|
69
|
-
"release-it": "^
|
|
67
|
+
"pg": "^8.16.0",
|
|
68
|
+
"prettier": "^3.5.3",
|
|
69
|
+
"release-it": "^19.0.3",
|
|
70
70
|
"ts-node-maintained": "^10.9.5",
|
|
71
|
-
"tsup": "^8.
|
|
72
|
-
"typescript": "~5.
|
|
71
|
+
"tsup": "^8.5.0",
|
|
72
|
+
"typescript": "~5.8.3"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"bentocache": "^1.
|
|
75
|
+
"bentocache": "^1.4.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"@adonisjs/assembler": "^7.0.0",
|
|
@@ -159,5 +159,6 @@
|
|
|
159
159
|
"dts": false,
|
|
160
160
|
"sourcemap": true,
|
|
161
161
|
"target": "esnext"
|
|
162
|
-
}
|
|
162
|
+
},
|
|
163
|
+
"packageManager": "pnpm@10.12.1"
|
|
163
164
|
}
|