Skip to content

cache decorator#3

Open
JohnDoePlusPlus wants to merge 10 commits intolabs42io:developfrom
JohnDoePlusPlus:story/cache
Open

cache decorator#3
JohnDoePlusPlus wants to merge 10 commits intolabs42io:developfrom
JohnDoePlusPlus:story/cache

Conversation

@JohnDoePlusPlus
Copy link

No description provided.

@JohnDoePlusPlus JohnDoePlusPlus changed the title cach decorator cache decorator Nov 9, 2019
move scope logic from cache to new class cache manager
Copy link
Member

@dimadeveatii dimadeveatii left a comment

Choose a reason for hiding this comment

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

Please cover with unit tests each internal file.

alex added 2 commits November 14, 2019 10:52
replace factory functions to class
rename CacheManager to CacheProvider
remove keysStorageIn MemoryStorage (now is using keys from map)
improve code in factories and in SlidingExpiration
add unit tests
Copy link
Member

@dimadeveatii dimadeveatii left a comment

Choose a reason for hiding this comment

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

Please review unit tests, make sure you don't test internal state, only the public interface. Each unit test should have one assertion.

@JohnDoePlusPlus JohnDoePlusPlus force-pushed the story/cache branch 2 times, most recently from 5c66cec to 20437a4 Compare November 18, 2019 13:12
improve unit tests
alex added 2 commits November 18, 2019 16:43
change factories, not create is with parameters
improve unit tests
@dimadeveatii
Copy link
Member

We should analyze the possibility to use the popular library lru-cache.

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