Skip to content

Memoize4#54

Merged
darkleaf merged 1 commit intomasterfrom
memoize4
May 1, 2025
Merged

Memoize4#54
darkleaf merged 1 commit intomasterfrom
memoize4

Conversation

@darkleaf
Copy link
Owner

No description provided.

@@ -0,0 +1,144 @@
(ns darkleaf.di.memoize-test
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

надо бы добавить реальный пример в туториал

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@darkleaf darkleaf mentioned this pull request Apr 25, 2025
(throw (ex-info "A memoized registry should be the first middleware"
{:type ::wrong-memoized-registry-position})))
(fn [key]
(let [factory (.computeIfAbsent factories key registry)]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если меняем зависимости, то нужно сбрасывать кэш. Проверить надо

@darkleaf darkleaf force-pushed the memoize4 branch 6 times, most recently from fe1500b to 984783d Compare April 26, 2025 17:43
@darkleaf darkleaf marked this pull request as ready for review May 1, 2025 17:14
@darkleaf darkleaf merged commit 967c5a6 into master May 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants