Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async / await in cache interface #532

Merged
merged 2 commits into from
Feb 10, 2021
Merged

async / await in cache interface #532

merged 2 commits into from
Feb 10, 2021

Conversation

gugu
Copy link
Contributor

@gugu gugu commented Feb 9, 2021

Currently, the cache interface is a very important part of this module because the default one is not usable in the production environment.

For compatibility reasons the interface was kept callback-based, despite the module itself uses async/await under the hood. For v3 I propose this breaking change to simplify our and users' code

Copy link
Collaborator

@cjbarth cjbarth left a comment

Choose a reason for hiding this comment

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

Some initial comments after a brief review. I'll look more closely later.

src/passport-saml/inmemory-cache-provider.ts Outdated Show resolved Hide resolved
src/passport-saml/inmemory-cache-provider.ts Outdated Show resolved Hide resolved
src/passport-saml/inmemory-cache-provider.ts Show resolved Hide resolved
@cjbarth
Copy link
Collaborator

cjbarth commented Feb 10, 2021

Please use a "Squash and merge" when merging to keep the git history cleaner.

@gugu gugu merged commit 54704de into master Feb 10, 2021
@gugu gugu deleted the cache-provider-promise branch February 10, 2021 15:26
@cjbarth cjbarth mentioned this pull request May 10, 2021
@cjbarth cjbarth added the chore Refactoring, etc. to keep code-rot in check. label May 13, 2021
gugu pushed a commit that referenced this pull request Jun 15, 2021
Cache Provider interface has changed in #532 . This updates the readme for the new interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Refactoring, etc. to keep code-rot in check.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants