@daiso-tech/core 0.33.0 → 0.35.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 +66 -45
- package/dist/async/_module-exports.d.ts +1 -1
- package/dist/async/_module-exports.js +1 -1
- package/dist/async/_module-exports.js.map +1 -1
- package/dist/async/async.errors.d.ts +27 -19
- package/dist/async/async.errors.js +33 -20
- package/dist/async/async.errors.js.map +1 -1
- package/dist/async/backof-policies/_shared.d.ts +6 -2
- package/dist/async/backof-policies/_shared.js +1 -0
- package/dist/async/backof-policies/_shared.js.map +1 -1
- package/dist/async/backof-policies/constant-backoff-policy/constant-backoff-policy.d.ts +2 -2
- package/dist/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js +1 -1
- package/dist/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.d.ts +2 -2
- package/dist/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +1 -1
- package/dist/async/backof-policies/linear-backoff-policy/linear-backoff-policy.d.ts +2 -2
- package/dist/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js +1 -1
- package/dist/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.d.ts +2 -2
- package/dist/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +1 -1
- package/dist/async/middlewares/_module.d.ts +8 -0
- package/dist/async/middlewares/_module.js +9 -0
- package/dist/async/middlewares/_module.js.map +1 -0
- package/dist/async/middlewares/_shared.d.ts +10 -0
- package/dist/async/middlewares/_shared.js +5 -0
- package/dist/async/middlewares/_shared.js.map +1 -0
- package/dist/async/middlewares/bulkhead/_module.d.ts +1 -0
- package/dist/async/middlewares/bulkhead/_module.js +2 -0
- package/dist/async/middlewares/bulkhead/_module.js.map +1 -0
- package/dist/async/middlewares/bulkhead/bulkhead.middleware.d.ts +80 -0
- package/dist/async/middlewares/bulkhead/bulkhead.middleware.js +46 -0
- package/dist/async/middlewares/bulkhead/bulkhead.middleware.js.map +1 -0
- package/dist/async/middlewares/dynamic/_module.d.ts +1 -0
- package/dist/async/middlewares/dynamic/_module.js +2 -0
- package/dist/async/middlewares/dynamic/_module.js.map +1 -0
- package/dist/async/middlewares/dynamic/dynamic.middleware.d.ts +34 -0
- package/dist/async/middlewares/dynamic/dynamic.middleware.js +36 -0
- package/dist/async/middlewares/dynamic/dynamic.middleware.js.map +1 -0
- package/dist/async/middlewares/fallback/_module.d.ts +1 -0
- package/dist/async/middlewares/fallback/_module.js +2 -0
- package/dist/async/middlewares/fallback/_module.js.map +1 -0
- package/dist/async/middlewares/fallback/fallback.middleware.d.ts +78 -0
- package/dist/async/middlewares/fallback/fallback.middleware.js +52 -0
- package/dist/async/middlewares/fallback/fallback.middleware.js.map +1 -0
- package/dist/async/middlewares/hedging/_module.d.ts +2 -0
- package/dist/async/middlewares/hedging/_module.js +3 -0
- package/dist/async/middlewares/hedging/_module.js.map +1 -0
- package/dist/async/middlewares/hedging/_shared.d.ts +93 -0
- package/dist/async/middlewares/hedging/_shared.js +5 -0
- package/dist/async/middlewares/hedging/_shared.js.map +1 -0
- package/dist/async/middlewares/hedging/concurrent-hedging/_module.d.ts +1 -0
- package/dist/async/middlewares/hedging/concurrent-hedging/_module.js +2 -0
- package/dist/async/middlewares/hedging/concurrent-hedging/_module.js.map +1 -0
- package/dist/async/middlewares/hedging/concurrent-hedging/concurrent-hedging.middleware.d.ts +51 -0
- package/dist/async/middlewares/hedging/concurrent-hedging/concurrent-hedging.middleware.js +138 -0
- package/dist/async/middlewares/hedging/concurrent-hedging/concurrent-hedging.middleware.js.map +1 -0
- package/dist/async/middlewares/hedging/sequential-hedging/_module.d.ts +1 -0
- package/dist/async/middlewares/hedging/sequential-hedging/_module.js +2 -0
- package/dist/async/middlewares/hedging/sequential-hedging/_module.js.map +1 -0
- package/dist/async/middlewares/hedging/sequential-hedging/sequential-hedging.middleware.d.ts +51 -0
- package/dist/async/middlewares/hedging/sequential-hedging/sequential-hedging.middleware.js +104 -0
- package/dist/async/middlewares/hedging/sequential-hedging/sequential-hedging.middleware.js.map +1 -0
- package/dist/async/middlewares/observe/_module.d.ts +1 -0
- package/dist/async/middlewares/observe/_module.js +2 -0
- package/dist/async/middlewares/observe/_module.js.map +1 -0
- package/dist/async/middlewares/observe/observe.middleware.d.ts +130 -0
- package/dist/async/middlewares/observe/observe.middleware.js +80 -0
- package/dist/async/middlewares/observe/observe.middleware.js.map +1 -0
- package/dist/async/middlewares/retry/_module.d.ts +1 -0
- package/dist/async/middlewares/retry/_module.js +2 -0
- package/dist/async/middlewares/retry/_module.js.map +1 -0
- package/dist/async/middlewares/retry/retry.middleware.d.ts +117 -0
- package/dist/async/middlewares/retry/retry.middleware.js +82 -0
- package/dist/async/middlewares/retry/retry.middleware.js.map +1 -0
- package/dist/async/middlewares/timeout/_module.d.ts +1 -0
- package/dist/async/middlewares/timeout/_module.js +2 -0
- package/dist/async/middlewares/timeout/_module.js.map +1 -0
- package/dist/async/middlewares/timeout/timeout.middleware.d.ts +83 -0
- package/dist/async/middlewares/timeout/timeout.middleware.js +60 -0
- package/dist/async/middlewares/timeout/timeout.middleware.js.map +1 -0
- package/dist/async/utilities/_module.d.ts +3 -4
- package/dist/async/utilities/_module.js +3 -4
- package/dist/async/utilities/_module.js.map +1 -1
- package/dist/async/utilities/abort-and-fail/_module.d.ts +1 -0
- package/dist/async/utilities/abort-and-fail/_module.js +2 -0
- package/dist/async/utilities/abort-and-fail/_module.js.map +1 -0
- package/dist/async/utilities/abort-and-fail/abort-and-fail.d.ts +7 -0
- package/dist/async/utilities/{abort → abort-and-fail}/abort-and-fail.js +6 -6
- package/dist/async/utilities/abort-and-fail/abort-and-fail.js.map +1 -0
- package/dist/async/utilities/lazy-promise/lazy-promise.d.ts +37 -194
- package/dist/async/utilities/lazy-promise/lazy-promise.js +62 -359
- package/dist/async/utilities/lazy-promise/lazy-promise.js.map +1 -1
- package/dist/async/utilities/promise-queue/_module.d.ts +1 -0
- package/dist/async/utilities/promise-queue/_module.js +2 -0
- package/dist/async/utilities/promise-queue/_module.js.map +1 -0
- package/dist/async/utilities/promise-queue/promise-queue.d.ts +32 -0
- package/dist/async/utilities/promise-queue/promise-queue.js +107 -0
- package/dist/async/utilities/promise-queue/promise-queue.js.map +1 -0
- package/dist/async/utilities/timeout-and-fail/_module.d.ts +1 -0
- package/dist/async/utilities/timeout-and-fail/_module.js +2 -0
- package/dist/async/utilities/timeout-and-fail/_module.js.map +1 -0
- package/dist/async/utilities/timeout-and-fail/timeout-and-fail.d.ts +7 -0
- package/dist/async/utilities/timeout-and-fail/timeout-and-fail.js +19 -0
- package/dist/async/utilities/timeout-and-fail/timeout-and-fail.js.map +1 -0
- package/dist/cache/contracts/cache-adapter.contract.d.ts +14 -14
- package/dist/cache/contracts/cache-factory.contract.d.ts +3 -3
- package/dist/cache/contracts/cache.contract.d.ts +73 -73
- package/dist/cache/contracts/cache.errors.d.ts +7 -7
- package/dist/cache/contracts/cache.errors.js +7 -7
- package/dist/cache/contracts/cache.events.d.ts +54 -58
- package/dist/cache/contracts/cache.events.js +6 -104
- package/dist/cache/contracts/cache.events.js.map +1 -1
- package/dist/cache/contracts/database-cache-adapter.contract.d.ts +16 -16
- package/dist/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.d.ts +3 -3
- package/dist/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.js +2 -2
- package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.d.ts +3 -9
- package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js +3 -9
- package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.d.ts +4 -4
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +3 -3
- package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.d.ts +2 -2
- package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.js +2 -2
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.d.ts +3 -3
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js +2 -2
- package/dist/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.d.ts +3 -3
- package/dist/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.js +2 -2
- package/dist/cache/implementations/derivables/cache/cache.d.ts +26 -27
- package/dist/cache/implementations/derivables/cache/cache.js +102 -91
- package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
- package/dist/cache/implementations/derivables/cache-factory/cache-factory.d.ts +5 -4
- package/dist/cache/implementations/derivables/cache-factory/cache-factory.js +2 -1
- package/dist/cache/implementations/derivables/cache-factory/cache-factory.js.map +1 -1
- package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.d.ts +3 -3
- package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js +2 -2
- package/dist/cache/implementations/test-utilities/cache.test-suite.d.ts +3 -3
- package/dist/cache/implementations/test-utilities/cache.test-suite.js +140 -149
- package/dist/cache/implementations/test-utilities/cache.test-suite.js.map +1 -1
- package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.d.ts +3 -3
- package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js +2 -2
- package/dist/collection/contracts/_shared/compartor.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/cross-join-result.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/ensure-map.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/ensure-record.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/foreach.type.d.ts +2 -2
- package/dist/collection/contracts/_shared/map.type.d.ts +2 -2
- package/dist/collection/contracts/_shared/modifier.type.d.ts +2 -2
- package/dist/collection/contracts/_shared/predicate.type.d.ts +7 -7
- package/dist/collection/contracts/_shared/reduce.type.d.ts +2 -2
- package/dist/collection/contracts/_shared/tap.type.d.ts +2 -2
- package/dist/collection/contracts/_shared/transform.type.d.ts +2 -2
- package/dist/collection/contracts/async-collection.contract.d.ts +109 -198
- package/dist/collection/contracts/collection.contract.d.ts +103 -103
- package/dist/collection/contracts/collection.errors.d.ts +11 -11
- package/dist/collection/contracts/collection.errors.js +11 -11
- package/dist/collection/implementations/_shared.d.ts +8 -8
- package/dist/collection/implementations/_shared.js +8 -8
- package/dist/collection/implementations/async-iterable-collection/_shared/_module.d.ts +0 -4
- package/dist/collection/implementations/async-iterable-collection/_shared/_module.js +0 -4
- package/dist/collection/implementations/async-iterable-collection/_shared/_module.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js +21 -19
- package/dist/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +15 -19
- package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js +15 -30
- package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/cross-join-iterable.d.ts +3 -3
- package/dist/collection/implementations/iterable-collection/_shared/cross-join-iterable.js +18 -20
- package/dist/collection/implementations/iterable-collection/_shared/cross-join-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/iterable-collection.d.ts +11 -12
- package/dist/collection/implementations/iterable-collection/iterable-collection.js +11 -12
- package/dist/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/collection/implementations/list-collection/list-collection.d.ts +11 -11
- package/dist/collection/implementations/list-collection/list-collection.js +24 -30
- package/dist/collection/implementations/list-collection/list-collection.js.map +1 -1
- package/dist/event-bus/contracts/_module-exports.d.ts +0 -1
- package/dist/event-bus/contracts/_module-exports.js +0 -1
- package/dist/event-bus/contracts/_module-exports.js.map +1 -1
- package/dist/event-bus/contracts/event-bus-adapter.contract.d.ts +13 -8
- package/dist/event-bus/contracts/event-bus-factory.contract.d.ts +6 -7
- package/dist/event-bus/contracts/event-bus-factory.contract.js.map +1 -1
- package/dist/event-bus/contracts/event-bus.contract.d.ts +30 -41
- package/dist/event-bus/contracts/event-bus.errors.d.ts +8 -8
- package/dist/event-bus/contracts/event-bus.errors.js +8 -8
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +3 -3
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +3 -3
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +2 -2
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js +2 -2
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +3 -3
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +2 -2
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +15 -15
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +32 -32
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
- package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.d.ts +17 -10
- package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js +13 -6
- package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js.map +1 -1
- package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.d.ts +3 -5
- package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js +15 -22
- package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js.map +1 -1
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.d.ts +3 -5
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js +189 -209
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
- package/dist/lock/contracts/database-lock-adapter.contract.d.ts +9 -9
- package/dist/lock/contracts/lock-adapter.contract.d.ts +7 -7
- package/dist/lock/contracts/lock-provider-factory.contract.d.ts +4 -4
- package/dist/lock/contracts/lock-provider.contract.d.ts +14 -14
- package/dist/lock/contracts/lock.contract.d.ts +22 -22
- package/dist/lock/contracts/lock.errors.d.ts +10 -10
- package/dist/lock/contracts/lock.errors.js +10 -10
- package/dist/lock/contracts/lock.events.d.ts +45 -54
- package/dist/lock/contracts/lock.events.js +9 -91
- package/dist/lock/contracts/lock.events.js.map +1 -1
- package/dist/lock/implementations/adapters/libsql-lock-adapter/libsql-lock-adapter.d.ts +5 -5
- package/dist/lock/implementations/adapters/libsql-lock-adapter/libsql-lock-adapter.js +4 -4
- package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.d.ts +3 -3
- package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js +3 -3
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.d.ts +5 -5
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js +4 -4
- package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.d.ts +2 -2
- package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js +2 -2
- package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.d.ts +3 -3
- package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js +3 -3
- package/dist/lock/implementations/adapters/sqlite-lock-adapter/sqlite-lock-adapter.d.ts +5 -5
- package/dist/lock/implementations/adapters/sqlite-lock-adapter/sqlite-lock-adapter.js +4 -4
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +33 -33
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +30 -30
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.d.ts +2 -2
- package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +3 -3
- package/dist/lock/implementations/derivables/lock-provider/lock.js +77 -58
- package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.d.ts +5 -4
- package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js +2 -1
- package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js.map +1 -1
- package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.d.ts +3 -3
- package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js +2 -2
- package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.d.ts +3 -3
- package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js +2 -2
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.d.ts +3 -3
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js +214 -214
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js.map +1 -1
- package/dist/serde/contracts/deserializer.contract.d.ts +2 -2
- package/dist/serde/contracts/flexible-serde-adapter.contract.d.ts +4 -4
- package/dist/serde/contracts/flexible-serde.contract.d.ts +8 -19
- package/dist/serde/contracts/serde.contract.d.ts +2 -2
- package/dist/serde/contracts/serde.errors.d.ts +4 -4
- package/dist/serde/contracts/serde.errors.js +4 -4
- package/dist/serde/contracts/serializable.contract.d.ts +2 -2
- package/dist/serde/contracts/serializer.contract.d.ts +2 -2
- package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.d.ts +2 -2
- package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.js +2 -2
- package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.d.ts +1 -1
- package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js +1 -1
- package/dist/serde/implementations/derivables/serde.d.ts +4 -35
- package/dist/serde/implementations/derivables/serde.js +2 -47
- package/dist/serde/implementations/derivables/serde.js.map +1 -1
- package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.d.ts +3 -3
- package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js +2 -2
- package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.d.ts +3 -3
- package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js +2 -2
- package/dist/utilities/classes/_module.d.ts +1 -1
- package/dist/utilities/classes/_module.js +1 -1
- package/dist/utilities/classes/_module.js.map +1 -1
- package/dist/utilities/classes/hooks/_module.d.ts +3 -0
- package/dist/utilities/classes/hooks/_module.js +4 -0
- package/dist/utilities/classes/hooks/_module.js.map +1 -0
- package/dist/utilities/classes/hooks/async-hooks.d.ts +209 -0
- package/dist/utilities/classes/hooks/async-hooks.js +145 -0
- package/dist/utilities/classes/hooks/async-hooks.js.map +1 -0
- package/dist/utilities/classes/hooks/hooks.d.ts +139 -0
- package/dist/utilities/classes/hooks/hooks.js +116 -0
- package/dist/utilities/classes/hooks/hooks.js.map +1 -0
- package/dist/utilities/classes/hooks/types.d.ts +9 -0
- package/dist/utilities/classes/hooks/types.js +5 -0
- package/dist/utilities/classes/hooks/types.js.map +1 -0
- package/dist/utilities/classes/key-prefixer/key-prefixer.d.ts +3 -3
- package/dist/utilities/classes/key-prefixer/key-prefixer.js +4 -4
- package/dist/utilities/classes/key-prefixer/key-prefixer.js.map +1 -1
- package/dist/utilities/classes/time-span/time-span.d.ts +5 -5
- package/dist/utilities/classes/time-span/time-span.js +5 -5
- package/dist/utilities/contracts/_module.d.ts +0 -1
- package/dist/utilities/contracts/_module.js +0 -1
- package/dist/utilities/contracts/_module.js.map +1 -1
- package/dist/utilities/contracts/deinitizable.contract.d.ts +1 -1
- package/dist/utilities/contracts/initizable.contract.d.ts +1 -1
- package/dist/utilities/contracts/prunable.contract.d.ts +1 -1
- package/dist/utilities/contracts/serialized-error.contract.d.ts +1 -1
- package/dist/utilities/contracts/sqlite-database.contract.d.ts +2 -2
- package/dist/utilities/errors.d.ts +5 -5
- package/dist/utilities/errors.js +5 -5
- package/dist/utilities/functions/factory.js +3 -3
- package/dist/utilities/functions/factory.js.map +1 -1
- package/dist/utilities/functions/invokable.d.ts +9 -5
- package/dist/utilities/functions/invokable.js +12 -2
- package/dist/utilities/functions/invokable.js.map +1 -1
- package/dist/utilities/functions/lazy.d.ts +5 -0
- package/dist/utilities/functions/lazy.js +12 -3
- package/dist/utilities/functions/lazy.js.map +1 -1
- package/dist/utilities/types/async-iterable-value.type.d.ts +1 -1
- package/dist/utilities/types/at-least-one.type.d.ts +1 -1
- package/dist/utilities/types/factory.type.d.ts +8 -8
- package/dist/utilities/types/invokable.type.d.ts +3 -3
- package/dist/utilities/types/items.type.d.ts +1 -1
- package/dist/utilities/types/lazy.type.d.ts +5 -5
- package/dist/utilities/types/none-func.type.d.ts +1 -1
- package/dist/utilities/types/one-or-more.type.d.ts +1 -1
- package/dist/utilities/types/promiseable.type.d.ts +1 -1
- package/dist/utilities/types/result.type.d.ts +1 -1
- package/package.json +22 -2
- package/dist/async/async.events.d.ts +0 -105
- package/dist/async/async.events.js +0 -82
- package/dist/async/async.events.js.map +0 -1
- package/dist/async/utilities/abort/_module.d.ts +0 -2
- package/dist/async/utilities/abort/_module.js +0 -3
- package/dist/async/utilities/abort/_module.js.map +0 -1
- package/dist/async/utilities/abort/abort-and-fail.d.ts +0 -4
- package/dist/async/utilities/abort/abort-and-fail.js.map +0 -1
- package/dist/async/utilities/abort/abort.d.ts +0 -9
- package/dist/async/utilities/abort/abort.js +0 -18
- package/dist/async/utilities/abort/abort.js.map +0 -1
- package/dist/async/utilities/delay/_module.d.ts +0 -1
- package/dist/async/utilities/delay/_module.js +0 -2
- package/dist/async/utilities/delay/_module.js.map +0 -1
- package/dist/async/utilities/delay/delay.d.ts +0 -10
- package/dist/async/utilities/delay/delay.js +0 -34
- package/dist/async/utilities/delay/delay.js.map +0 -1
- package/dist/async/utilities/retry/_module.d.ts +0 -2
- package/dist/async/utilities/retry/_module.js +0 -3
- package/dist/async/utilities/retry/_module.js.map +0 -1
- package/dist/async/utilities/retry/retry-or-fail.d.ts +0 -29
- package/dist/async/utilities/retry/retry-or-fail.js +0 -39
- package/dist/async/utilities/retry/retry-or-fail.js.map +0 -1
- package/dist/async/utilities/retry/retry.d.ts +0 -10
- package/dist/async/utilities/retry/retry.js +0 -21
- package/dist/async/utilities/retry/retry.js.map +0 -1
- package/dist/async/utilities/timeout/_module.d.ts +0 -2
- package/dist/async/utilities/timeout/_module.js +0 -3
- package/dist/async/utilities/timeout/_module.js.map +0 -1
- package/dist/async/utilities/timeout/timeout-and-fail.d.ts +0 -5
- package/dist/async/utilities/timeout/timeout-and-fail.js +0 -28
- package/dist/async/utilities/timeout/timeout-and-fail.js.map +0 -1
- package/dist/async/utilities/timeout/timeout.d.ts +0 -10
- package/dist/async/utilities/timeout/timeout.js +0 -21
- package/dist/async/utilities/timeout/timeout.js.map +0 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-delay-iterable.d.ts +0 -13
- package/dist/collection/implementations/async-iterable-collection/_shared/async-delay-iterable.js +0 -30
- package/dist/collection/implementations/async-iterable-collection/_shared/async-delay-iterable.js.map +0 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-retry-iterable.d.ts +0 -13
- package/dist/collection/implementations/async-iterable-collection/_shared/async-retry-iterable.js +0 -36
- package/dist/collection/implementations/async-iterable-collection/_shared/async-retry-iterable.js.map +0 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-abort-iterable.d.ts +0 -9
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-abort-iterable.js +0 -39
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-abort-iterable.js.map +0 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-timeout-iterable.d.ts +0 -13
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-timeout-iterable.js +0 -52
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-timeout-iterable.js.map +0 -1
- package/dist/event-bus/contracts/_shared.d.ts +0 -12
- package/dist/event-bus/contracts/_shared.js +0 -15
- package/dist/event-bus/contracts/_shared.js.map +0 -1
- package/dist/utilities/classes/sync-event-bus/_module.d.ts +0 -1
- package/dist/utilities/classes/sync-event-bus/_module.js +0 -2
- package/dist/utilities/classes/sync-event-bus/_module.js.map +0 -1
- package/dist/utilities/classes/sync-event-bus/sync-event-bus.d.ts +0 -16
- package/dist/utilities/classes/sync-event-bus/sync-event-bus.js +0 -53
- package/dist/utilities/classes/sync-event-bus/sync-event-bus.js.map +0 -1
- package/dist/utilities/contracts/sync-event-bus-listenable.d.ts +0 -13
- package/dist/utilities/contracts/sync-event-bus-listenable.js +0 -5
- package/dist/utilities/contracts/sync-event-bus-listenable.js.map +0 -1
|
@@ -1,131 +1,127 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module Cache
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import type { IFlexibleSerde } from "../../serde/contracts/_module-exports.js";
|
|
6
|
-
import { type OneOrMore, type TimeSpan } from "../../utilities/_module-exports.js";
|
|
4
|
+
import type { TimeSpan } from "../../utilities/_module-exports.js";
|
|
7
5
|
/**
|
|
8
6
|
* The event is dispatched when key is found.
|
|
9
7
|
*
|
|
10
|
-
* IMPORT_PATH:
|
|
8
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
11
9
|
* @group Events
|
|
12
10
|
*/
|
|
13
|
-
export
|
|
11
|
+
export type FoundCacheEventt<TType = unknown> = {
|
|
14
12
|
key: string;
|
|
15
13
|
value: TType;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
14
|
+
};
|
|
18
15
|
/**
|
|
19
16
|
* The event is dispatched when key is not found.
|
|
20
17
|
*
|
|
21
|
-
* IMPORT_PATH:
|
|
18
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
22
19
|
* @group Events
|
|
23
20
|
*/
|
|
24
|
-
export
|
|
21
|
+
export type NotFoundCacheEvent = {
|
|
25
22
|
key: string;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
23
|
+
};
|
|
28
24
|
/**
|
|
29
25
|
* The event is dispatched when key is added.
|
|
30
26
|
*
|
|
31
|
-
* IMPORT_PATH:
|
|
27
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
32
28
|
* @group Events
|
|
33
29
|
*/
|
|
34
|
-
export
|
|
30
|
+
export type AddedCacheEvent<TType = unknown> = {
|
|
31
|
+
type: "added";
|
|
35
32
|
key: string;
|
|
36
33
|
value: TType;
|
|
37
34
|
ttl: TimeSpan | null;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
35
|
+
};
|
|
40
36
|
/**
|
|
41
37
|
* The event is dispatched when key is updated.
|
|
42
38
|
*
|
|
43
|
-
* IMPORT_PATH:
|
|
39
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
44
40
|
* @group Events
|
|
45
41
|
*/
|
|
46
|
-
export
|
|
42
|
+
export type UpdatedCacheEvent<TType = unknown> = {
|
|
43
|
+
type: "updated";
|
|
47
44
|
key: string;
|
|
48
45
|
value: TType;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
46
|
+
};
|
|
51
47
|
/**
|
|
52
48
|
* The event is dispatched when key is removed.
|
|
53
49
|
*
|
|
54
|
-
* IMPORT_PATH:
|
|
50
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
55
51
|
* @group Events
|
|
56
52
|
*/
|
|
57
|
-
export
|
|
53
|
+
export type RemovedCacheEvent = {
|
|
54
|
+
type: "removed";
|
|
58
55
|
key: string;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
56
|
+
};
|
|
61
57
|
/**
|
|
62
58
|
* The event is dispatched when key is incremented.
|
|
63
59
|
*
|
|
64
|
-
* IMPORT_PATH:
|
|
60
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
65
61
|
* @group Events
|
|
66
62
|
*/
|
|
67
|
-
export
|
|
63
|
+
export type IncrementedCacheEvent = {
|
|
64
|
+
type: "incremented";
|
|
68
65
|
key: string;
|
|
69
66
|
value: number;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
67
|
+
};
|
|
72
68
|
/**
|
|
73
69
|
* The event is dispatched when key is decremented.
|
|
74
70
|
*
|
|
75
|
-
* IMPORT_PATH:
|
|
71
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
76
72
|
* @group Events
|
|
77
73
|
*/
|
|
78
|
-
export
|
|
74
|
+
export type DecrementedCacheEvent = {
|
|
75
|
+
type: "decremented";
|
|
79
76
|
key: string;
|
|
80
77
|
value: number;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
78
|
+
};
|
|
83
79
|
/**
|
|
84
|
-
* The event is dispatched when
|
|
80
|
+
* The event is dispatched when key is updated or added.
|
|
85
81
|
*
|
|
86
|
-
* IMPORT_PATH:
|
|
82
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
87
83
|
* @group Events
|
|
88
84
|
*/
|
|
89
|
-
export
|
|
90
|
-
}
|
|
85
|
+
export type WrittenCacheEvent<TType = unknown> = AddedCacheEvent<TType> | UpdatedCacheEvent<TType> | RemovedCacheEvent | IncrementedCacheEvent | DecrementedCacheEvent;
|
|
91
86
|
/**
|
|
87
|
+
* The event is dispatched when all keys all cleared of the cache.
|
|
92
88
|
*
|
|
93
|
-
* IMPORT_PATH:
|
|
89
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
94
90
|
* @group Events
|
|
95
91
|
*/
|
|
96
|
-
export
|
|
92
|
+
export type ClearedCacheEvent = {};
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
96
|
+
* @group Events
|
|
97
|
+
*/
|
|
98
|
+
export type UnexpectedErrorCacheEvent = {
|
|
97
99
|
keys?: string[];
|
|
98
100
|
value?: unknown;
|
|
99
101
|
method: string;
|
|
100
102
|
error: unknown;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
+
};
|
|
103
104
|
/**
|
|
104
105
|
*
|
|
105
|
-
* IMPORT_PATH:
|
|
106
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
106
107
|
* @group Events
|
|
107
108
|
*/
|
|
108
109
|
export declare const CACHE_EVENTS: {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
KeyIncremented: typeof KeyIncrementedCacheEvent;
|
|
115
|
-
KeyDecremented: typeof KeyDecrementedCacheEvent;
|
|
116
|
-
KeysCleared: typeof KeysClearedCacheEvent;
|
|
117
|
-
UnexpectedError: typeof UnexpectedErrorCacheEvent;
|
|
110
|
+
readonly FOUND: "FOUND";
|
|
111
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
112
|
+
readonly WRITTEN: "WRITTEN";
|
|
113
|
+
readonly CLEARED: "CLEARED";
|
|
114
|
+
readonly UNEXPECTED_ERROR: "UNEXPECTED_ERROR";
|
|
118
115
|
};
|
|
119
116
|
/**
|
|
120
117
|
*
|
|
121
|
-
* IMPORT_PATH:
|
|
122
|
-
* @group Events
|
|
123
|
-
*/
|
|
124
|
-
export type CacheEvents<TType = unknown> = KeyFoundCacheEvent<TType> | KeyNotFoundCacheEvent | KeyAddedCacheEvent<TType> | KeyUpdatedCacheEvent<TType> | KeyRemovedCacheEvent | KeyIncrementedCacheEvent | KeyDecrementedCacheEvent | KeysClearedCacheEvent | UnexpectedErrorCacheEvent;
|
|
125
|
-
/**
|
|
126
|
-
* The <i>registerCacheEventsToSerde</i> function registers all <i>{@link ICache}</i> related events with <i>IFlexibleSerde</i>, ensuring they will properly be serialized and deserialized.
|
|
127
|
-
*
|
|
128
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
118
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
129
119
|
* @group Events
|
|
130
120
|
*/
|
|
131
|
-
export
|
|
121
|
+
export type CacheEventMap<TType = unknown> = {
|
|
122
|
+
[CACHE_EVENTS.FOUND]: FoundCacheEventt<TType>;
|
|
123
|
+
[CACHE_EVENTS.NOT_FOUND]: NotFoundCacheEvent;
|
|
124
|
+
[CACHE_EVENTS.WRITTEN]: WrittenCacheEvent<TType>;
|
|
125
|
+
[CACHE_EVENTS.CLEARED]: ClearedCacheEvent;
|
|
126
|
+
[CACHE_EVENTS.UNEXPECTED_ERROR]: UnexpectedErrorCacheEvent;
|
|
127
|
+
};
|
|
@@ -1,114 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module Cache
|
|
3
3
|
*/
|
|
4
|
-
import { BaseEvent } from "../../event-bus/contracts/_module-exports.js";
|
|
5
|
-
import { CORE, resolveOneOrMore, } from "../../utilities/_module-exports.js";
|
|
6
4
|
/**
|
|
7
|
-
* The event is dispatched when key is found.
|
|
8
5
|
*
|
|
9
|
-
* IMPORT_PATH:
|
|
10
|
-
* @group Events
|
|
11
|
-
*/
|
|
12
|
-
export class KeyFoundCacheEvent extends BaseEvent {
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The event is dispatched when key is not found.
|
|
16
|
-
*
|
|
17
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
18
|
-
* @group Events
|
|
19
|
-
*/
|
|
20
|
-
export class KeyNotFoundCacheEvent extends BaseEvent {
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* The event is dispatched when key is added.
|
|
24
|
-
*
|
|
25
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
26
|
-
* @group Events
|
|
27
|
-
*/
|
|
28
|
-
export class KeyAddedCacheEvent extends BaseEvent {
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* The event is dispatched when key is updated.
|
|
32
|
-
*
|
|
33
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
34
|
-
* @group Events
|
|
35
|
-
*/
|
|
36
|
-
export class KeyUpdatedCacheEvent extends BaseEvent {
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* The event is dispatched when key is removed.
|
|
40
|
-
*
|
|
41
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
42
|
-
* @group Events
|
|
43
|
-
*/
|
|
44
|
-
export class KeyRemovedCacheEvent extends BaseEvent {
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* The event is dispatched when key is incremented.
|
|
48
|
-
*
|
|
49
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
50
|
-
* @group Events
|
|
51
|
-
*/
|
|
52
|
-
export class KeyIncrementedCacheEvent extends BaseEvent {
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* The event is dispatched when key is decremented.
|
|
56
|
-
*
|
|
57
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
58
|
-
* @group Events
|
|
59
|
-
*/
|
|
60
|
-
export class KeyDecrementedCacheEvent extends BaseEvent {
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* The event is dispatched when all keys all cleared.
|
|
64
|
-
*
|
|
65
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
66
|
-
* @group Events
|
|
67
|
-
*/
|
|
68
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
69
|
-
export class KeysClearedCacheEvent extends BaseEvent {
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
74
|
-
* @group Events
|
|
75
|
-
*/
|
|
76
|
-
export class UnexpectedErrorCacheEvent extends BaseEvent {
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
6
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
81
7
|
* @group Events
|
|
82
8
|
*/
|
|
83
9
|
export const CACHE_EVENTS = {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
KeyIncremented: KeyIncrementedCacheEvent,
|
|
90
|
-
KeyDecremented: KeyDecrementedCacheEvent,
|
|
91
|
-
KeysCleared: KeysClearedCacheEvent,
|
|
92
|
-
UnexpectedError: UnexpectedErrorCacheEvent,
|
|
10
|
+
FOUND: "FOUND",
|
|
11
|
+
NOT_FOUND: "NOT_FOUND",
|
|
12
|
+
WRITTEN: "WRITTEN",
|
|
13
|
+
CLEARED: "CLEARED",
|
|
14
|
+
UNEXPECTED_ERROR: "UNEXPECTED_ERROR",
|
|
93
15
|
};
|
|
94
|
-
/**
|
|
95
|
-
* The <i>registerCacheEventsToSerde</i> function registers all <i>{@link ICache}</i> related events with <i>IFlexibleSerde</i>, ensuring they will properly be serialized and deserialized.
|
|
96
|
-
*
|
|
97
|
-
* IMPORT_PATH: ```"@daiso-tech/core/cache/contracts"```
|
|
98
|
-
* @group Events
|
|
99
|
-
*/
|
|
100
|
-
export function registerCacheEventsToSerde(serde) {
|
|
101
|
-
for (const serde_ of resolveOneOrMore(serde)) {
|
|
102
|
-
serde_
|
|
103
|
-
.registerEvent(KeyFoundCacheEvent, CORE)
|
|
104
|
-
.registerEvent(KeyNotFoundCacheEvent, CORE)
|
|
105
|
-
.registerEvent(KeyAddedCacheEvent, CORE)
|
|
106
|
-
.registerEvent(KeyUpdatedCacheEvent, CORE)
|
|
107
|
-
.registerEvent(KeyRemovedCacheEvent, CORE)
|
|
108
|
-
.registerEvent(KeyIncrementedCacheEvent, CORE)
|
|
109
|
-
.registerEvent(KeyDecrementedCacheEvent, CORE)
|
|
110
|
-
.registerEvent(KeysClearedCacheEvent, CORE)
|
|
111
|
-
.registerEvent(UnexpectedErrorCacheEvent, CORE);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
16
|
//# sourceMappingURL=cache.events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.events.js","sourceRoot":"","sources":["../../../src/cache/contracts/cache.events.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"cache.events.js","sourceRoot":"","sources":["../../../src/cache/contracts/cache.events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAwHH;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,gBAAgB,EAAE,kBAAkB;CAC9B,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
|
-
* IMPORT_PATH:
|
|
6
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
7
7
|
* @group Contracts
|
|
8
8
|
*/
|
|
9
9
|
export type ICacheData<TType = unknown> = {
|
|
@@ -12,7 +12,7 @@ export type ICacheData<TType = unknown> = {
|
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
|
-
* IMPORT_PATH:
|
|
15
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
16
16
|
* @group Contracts
|
|
17
17
|
*/
|
|
18
18
|
export type ICacheDataExpiration = {
|
|
@@ -20,7 +20,7 @@ export type ICacheDataExpiration = {
|
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* IMPORT_PATH:
|
|
23
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
24
24
|
* @group Contracts
|
|
25
25
|
*/
|
|
26
26
|
export type ICacheInsert<TType = unknown> = {
|
|
@@ -30,7 +30,7 @@ export type ICacheInsert<TType = unknown> = {
|
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* IMPORT_PATH:
|
|
33
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
34
34
|
* @group Contracts
|
|
35
35
|
*/
|
|
36
36
|
export type ICacheUpdate<TType = unknown> = {
|
|
@@ -38,52 +38,52 @@ export type ICacheUpdate<TType = unknown> = {
|
|
|
38
38
|
value: TType;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
* The
|
|
41
|
+
* The `IDatabaseCacheAdapter` contract defines a way for as key-value pairs independent of data storage.
|
|
42
42
|
* This contract simplifies the implementation of cache adapters with CRUD-based databases, such as SQL databases and ORMs like TypeOrm and MikroOrm.
|
|
43
43
|
*
|
|
44
|
-
* IMPORT_PATH:
|
|
44
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
|
|
45
45
|
* @group Contracts
|
|
46
46
|
*/
|
|
47
47
|
export type IDatabaseCacheAdapter<TType = unknown> = {
|
|
48
48
|
/**
|
|
49
|
-
* The
|
|
49
|
+
* The `find` method returns the the `key` data which includs {@link ICacheData | `ICacheData.value`} and {@link ICacheData | `ICacheData.expiration`}.
|
|
50
50
|
*/
|
|
51
51
|
find(key: string): PromiseLike<ICacheData<TType> | null>;
|
|
52
52
|
/**
|
|
53
|
-
* The
|
|
53
|
+
* The `insert` method inserts the given cache `data`.
|
|
54
54
|
*/
|
|
55
55
|
insert(data: ICacheInsert<TType>): PromiseLike<void>;
|
|
56
56
|
/**
|
|
57
|
-
* The
|
|
57
|
+
* The `upsert` method inserts a key and if the key already exists then key will be updated with new `data.value` and `data.expiration`.
|
|
58
58
|
* The method always returns the old cache data if it exists otherwise null will be returned.
|
|
59
59
|
*/
|
|
60
60
|
upsert(data: ICacheInsert<TType>): PromiseLike<ICacheDataExpiration | null>;
|
|
61
61
|
/**
|
|
62
|
-
* The
|
|
62
|
+
* The `removeExpiredMany` method updates a expired `key`.
|
|
63
63
|
*/
|
|
64
64
|
updateExpired(data: ICacheInsert<TType>): PromiseLike<number>;
|
|
65
65
|
/**
|
|
66
|
-
* The
|
|
66
|
+
* The `removeExpiredMany` method updates a unexpired `key`.
|
|
67
67
|
*/
|
|
68
68
|
updateUnexpired(data: ICacheUpdate<TType>): PromiseLike<number>;
|
|
69
69
|
/**
|
|
70
|
-
* The
|
|
70
|
+
* The `incrementUnexpired` should always throw an error if the existing item is not a number type.
|
|
71
71
|
*/
|
|
72
72
|
incrementUnexpired(data: ICacheUpdate<number>): PromiseLike<number>;
|
|
73
73
|
/**
|
|
74
|
-
* The
|
|
74
|
+
* The `removeExpiredMany` method removes multiple expired `keys`.
|
|
75
75
|
*/
|
|
76
76
|
removeExpiredMany(keys: string[]): PromiseLike<number>;
|
|
77
77
|
/**
|
|
78
|
-
* The
|
|
78
|
+
* The `removeExpiredMany` method removes multiple unexpired `keys`.
|
|
79
79
|
*/
|
|
80
80
|
removeUnexpiredMany(keys: string[]): PromiseLike<number>;
|
|
81
81
|
/**
|
|
82
|
-
* The
|
|
82
|
+
* The `removeAll` method removes all keys from the cache.
|
|
83
83
|
*/
|
|
84
84
|
removeAll(): PromiseLike<void>;
|
|
85
85
|
/**
|
|
86
|
-
* The
|
|
86
|
+
* The `removeByKeyPrefix` method removes all the keys in the cache that starts with the given `prefix`.
|
|
87
87
|
*/
|
|
88
88
|
removeByKeyPrefix(prefix: string): PromiseLike<void>;
|
|
89
89
|
};
|
|
@@ -7,7 +7,7 @@ import type { ISerde } from "../../../../serde/contracts/_module-exports.js";
|
|
|
7
7
|
import type { Client } from "@libsql/client";
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
|
-
* IMPORT_PATH:
|
|
10
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
11
11
|
* @group Adapters
|
|
12
12
|
*/
|
|
13
13
|
export type LibsqlCacheAdapterSettings = {
|
|
@@ -19,9 +19,9 @@ export type LibsqlCacheAdapterSettings = {
|
|
|
19
19
|
shouldRemoveExpiredKeys?: boolean;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
* To utilize the
|
|
22
|
+
* To utilize the `LibsqlCacheAdapter`, you must install the `"@libsql/client"` package and supply a {@link ISerde | `ISerde<string>`}, with an adapter like {@link SuperJsonSerdeAdapter | `SuperJsonSerdeAdapter `}.
|
|
23
23
|
*
|
|
24
|
-
* IMPORT_PATH:
|
|
24
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
25
25
|
* @group Adapters
|
|
26
26
|
*/
|
|
27
27
|
export declare class LibsqlCacheAdapter<TType = unknown> implements IDatabaseCacheAdapter<TType>, IInitizable, IDeinitizable, IPrunable {
|
|
@@ -8,9 +8,9 @@ import { Kysely } from "kysely";
|
|
|
8
8
|
import { LibsqlDialect } from "@libsql/kysely-libsql";
|
|
9
9
|
import { KyselyTableNameTransformerPlugin } from "../../../../utilities/_module-exports.js";
|
|
10
10
|
/**
|
|
11
|
-
* To utilize the
|
|
11
|
+
* To utilize the `LibsqlCacheAdapter`, you must install the `"@libsql/client"` package and supply a {@link ISerde | `ISerde<string>`}, with an adapter like {@link SuperJsonSerdeAdapter | `SuperJsonSerdeAdapter `}.
|
|
12
12
|
*
|
|
13
|
-
* IMPORT_PATH:
|
|
13
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
14
14
|
* @group Adapters
|
|
15
15
|
*/
|
|
16
16
|
export class LibsqlCacheAdapter {
|
|
@@ -4,22 +4,16 @@
|
|
|
4
4
|
import { type ICacheAdapter } from "../../../../cache/contracts/_module-exports.js";
|
|
5
5
|
import type { TimeSpan } from "../../../../utilities/_module-exports.js";
|
|
6
6
|
/**
|
|
7
|
-
* To utilize the
|
|
7
|
+
* To utilize the `MemoryCacheAdapter`, you must create instance of it.
|
|
8
8
|
*
|
|
9
|
-
* IMPORT_PATH:
|
|
9
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
10
10
|
* @group Adapters
|
|
11
11
|
*/
|
|
12
12
|
export declare class MemoryCacheAdapter<TType> implements ICacheAdapter<TType> {
|
|
13
13
|
private readonly map;
|
|
14
14
|
private readonly timeoutMap;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* ```ts
|
|
18
|
-
* import { MemoryCacheAdapter } from "@daiso-tech/core/cache/adapters";
|
|
19
|
-
*
|
|
20
|
-
* const cacheAdapter = new MemoryCacheAdapter();
|
|
21
|
-
* ```
|
|
22
|
-
* You can also provide an <i>{@link Map}</i> that will be used for storing the data.
|
|
16
|
+
* You can provide an optional {@link Map | `Map`}, that will be used for storing the data.
|
|
23
17
|
* @example
|
|
24
18
|
* ```ts
|
|
25
19
|
* import { MemoryCacheAdapter } from "@daiso-tech/core/cache/adapters";
|
|
@@ -4,22 +4,16 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { TypeCacheError, } from "../../../../cache/contracts/_module-exports.js";
|
|
6
6
|
/**
|
|
7
|
-
* To utilize the
|
|
7
|
+
* To utilize the `MemoryCacheAdapter`, you must create instance of it.
|
|
8
8
|
*
|
|
9
|
-
* IMPORT_PATH:
|
|
9
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
10
10
|
* @group Adapters
|
|
11
11
|
*/
|
|
12
12
|
export class MemoryCacheAdapter {
|
|
13
13
|
map;
|
|
14
14
|
timeoutMap = new Map();
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* ```ts
|
|
18
|
-
* import { MemoryCacheAdapter } from "@daiso-tech/core/cache/adapters";
|
|
19
|
-
*
|
|
20
|
-
* const cacheAdapter = new MemoryCacheAdapter();
|
|
21
|
-
* ```
|
|
22
|
-
* You can also provide an <i>{@link Map}</i> that will be used for storing the data.
|
|
16
|
+
* You can provide an optional {@link Map | `Map`}, that will be used for storing the data.
|
|
23
17
|
* @example
|
|
24
18
|
* ```ts
|
|
25
19
|
* import { MemoryCacheAdapter } from "@daiso-tech/core/cache/adapters";
|
package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-cache-adapter.js","sourceRoot":"","sources":["../../../../../src/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD;;GAEG;AAEH,OAAO,EACH,cAAc,GAEjB,MAAM,sCAAsC,CAAC;AAG9C;;;;;GAKG;AACH,MAAM,OAAO,kBAAkB;
|
|
1
|
+
{"version":3,"file":"memory-cache-adapter.js","sourceRoot":"","sources":["../../../../../src/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.ts"],"names":[],"mappings":"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"}
|
package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { IDeinitizable, IInitizable, TimeSpan } from "../../../../utilities
|
|
|
7
7
|
import { type CollectionOptions, type Db } from "mongodb";
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
|
-
* IMPORT_PATH:
|
|
10
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
11
11
|
* @group Adapters
|
|
12
12
|
*/
|
|
13
13
|
export type MongodbCacheAdapterSettings = {
|
|
@@ -17,9 +17,9 @@ export type MongodbCacheAdapterSettings = {
|
|
|
17
17
|
collectionSettings?: CollectionOptions;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
* To utilize the
|
|
20
|
+
* To utilize the `MongodbCacheAdapter`, you must install the `"mongodb"` package and supply a {@link ISerde | `ISerde<string>`}, with an adapter like {@link SuperJsonSerdeAdapter | `SuperJsonSerdeAdapter `}.
|
|
21
21
|
*
|
|
22
|
-
* IMPORT_PATH:
|
|
22
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
23
23
|
* @group Adapters
|
|
24
24
|
*/
|
|
25
25
|
export declare class MongodbCacheAdapter<TType> implements ICacheAdapter<TType>, IInitizable, IDeinitizable {
|
|
@@ -49,7 +49,7 @@ export declare class MongodbCacheAdapter<TType> implements ICacheAdapter<TType>,
|
|
|
49
49
|
constructor(settings: MongodbCacheAdapterSettings);
|
|
50
50
|
/**
|
|
51
51
|
* Creates all related indexes.
|
|
52
|
-
* Note the
|
|
52
|
+
* Note the `init` method needs to be called before using the adapter.
|
|
53
53
|
*/
|
|
54
54
|
init(): Promise<void>;
|
|
55
55
|
/**
|
|
@@ -7,9 +7,9 @@ import { MongoServerError } from "mongodb";
|
|
|
7
7
|
import {} from "mongodb";
|
|
8
8
|
import escapeStringRegexp from "escape-string-regexp";
|
|
9
9
|
/**
|
|
10
|
-
* To utilize the
|
|
10
|
+
* To utilize the `MongodbCacheAdapter`, you must install the `"mongodb"` package and supply a {@link ISerde | `ISerde<string>`}, with an adapter like {@link SuperJsonSerdeAdapter | `SuperJsonSerdeAdapter `}.
|
|
11
11
|
*
|
|
12
|
-
* IMPORT_PATH:
|
|
12
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
13
13
|
* @group Adapters
|
|
14
14
|
*/
|
|
15
15
|
export class MongodbCacheAdapter {
|
|
@@ -83,7 +83,7 @@ export class MongodbCacheAdapter {
|
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* Creates all related indexes.
|
|
86
|
-
* Note the
|
|
86
|
+
* Note the `init` method needs to be called before using the adapter.
|
|
87
87
|
*/
|
|
88
88
|
async init() {
|
|
89
89
|
try {
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import { type ICacheAdapter } from "../../../../cache/contracts/_module-exports.js";
|
|
5
5
|
import type { TimeSpan } from "../../../../utilities/_module-exports.js";
|
|
6
6
|
/**
|
|
7
|
-
* This
|
|
7
|
+
* This `NoOpCacheAdapter` will do nothing and is used for easily mocking {@link ICache | `ICache`} for testing.
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
|
-
* IMPORT_PATH:
|
|
10
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
11
11
|
* @group Adapters
|
|
12
12
|
*/
|
|
13
13
|
export declare class NoOpCacheAdapter<TType> implements ICacheAdapter<TType> {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import {} from "../../../../cache/contracts/_module-exports.js";
|
|
5
5
|
/**
|
|
6
|
-
* This
|
|
6
|
+
* This `NoOpCacheAdapter` will do nothing and is used for easily mocking {@link ICache | `ICache`} for testing.
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
|
-
* IMPORT_PATH:
|
|
9
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
10
10
|
* @group Adapters
|
|
11
11
|
*/
|
|
12
12
|
export class NoOpCacheAdapter {
|
|
@@ -12,7 +12,7 @@ declare module "ioredis" {
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
|
-
* IMPORT_PATH:
|
|
15
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
16
16
|
* @group Adapters
|
|
17
17
|
*/
|
|
18
18
|
export type RedisCacheAdapterSettings = {
|
|
@@ -20,9 +20,9 @@ export type RedisCacheAdapterSettings = {
|
|
|
20
20
|
serde: ISerde<string>;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
|
-
* To utilize the
|
|
23
|
+
* To utilize the `RedisCacheAdapter`, you must install the `"ioredis"` package and supply a {@link ISerde | `ISerde<string>`}, with adapter like {@link SuperJsonSerdeAdapter | `SuperJsonSerdeAdapter `}.
|
|
24
24
|
*
|
|
25
|
-
* IMPORT_PATH:
|
|
25
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
26
26
|
* @group Adapters
|
|
27
27
|
*/
|
|
28
28
|
export declare class RedisCacheAdapter<TType> implements ICacheAdapter<TType> {
|
|
@@ -6,9 +6,9 @@ import { ReplyError } from "ioredis";
|
|
|
6
6
|
import { ClearIterable } from "../../../../cache/implementations/adapters/redis-cache-adapter/utilities.js";
|
|
7
7
|
import { RedisCacheAdapterSerde } from "../../../../cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js";
|
|
8
8
|
/**
|
|
9
|
-
* To utilize the
|
|
9
|
+
* To utilize the `RedisCacheAdapter`, you must install the `"ioredis"` package and supply a {@link ISerde | `ISerde<string>`}, with adapter like {@link SuperJsonSerdeAdapter | `SuperJsonSerdeAdapter `}.
|
|
10
10
|
*
|
|
11
|
-
* IMPORT_PATH:
|
|
11
|
+
* IMPORT_PATH: `"@daiso-tech/core/cache/adapters"`
|
|
12
12
|
* @group Adapters
|
|
13
13
|
*/
|
|
14
14
|
export class RedisCacheAdapter {
|