commandkit 0.1.11-dev.20250330065036 → 0.1.11-dev.20250330073734

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/dist/index.d.ts CHANGED
@@ -1501,6 +1501,11 @@ declare class CommandKit extends EventEmitter {
1501
1501
  * @param locale The default locale.
1502
1502
  */
1503
1503
  setDefaultLocale(locale: Locale): this;
1504
+ /**
1505
+ * Sets the cache provider.
1506
+ * @param provider The cache provider.
1507
+ */
1508
+ setCacheProvider(provider: CacheProvider): this;
1504
1509
  /**
1505
1510
  * Sets the localization strategy for the command handler.
1506
1511
  * @param strategy The localization strategy.
package/dist/index.js CHANGED
@@ -4572,6 +4572,19 @@ var init_CommandKit = __esm({
4572
4572
  this.config.defaultLocale = locale;
4573
4573
  return this;
4574
4574
  }
4575
+ /**
4576
+ * Sets the cache provider.
4577
+ * @param provider The cache provider.
4578
+ */
4579
+ setCacheProvider(provider) {
4580
+ if (!(provider instanceof CacheProvider)) {
4581
+ throw new Error(
4582
+ colors_default.red("Cache provider must be an instance of CacheProvider.")
4583
+ );
4584
+ }
4585
+ this.options.cacheProvider = provider;
4586
+ return this;
4587
+ }
4575
4588
  /**
4576
4589
  * Sets the localization strategy for the command handler.
4577
4590
  * @param strategy The localization strategy.
@@ -4711,7 +4724,7 @@ var init_version = __esm({
4711
4724
  "use strict";
4712
4725
  init_cjs_shims();
4713
4726
  version = /* @__MACRO__ $version */
4714
- "0.1.11-dev.20250330065036";
4727
+ "0.1.11-dev.20250330073734";
4715
4728
  }
4716
4729
  });
4717
4730