Skip to content

[msal-node] Cache Lookup - 3: Msal node cache response #1680

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

Merged
merged 8 commits into from
Jun 3, 2020

Conversation

sameerag
Copy link
Member

This PR updates ResponseHandler.ts, introduces CacheRecord.

@sameerag sameerag changed the title [msal-node] Msal node cache response [msal-node] Cache Lookup - 3: Msal node cache response May 19, 2020
This was referenced May 20, 2020
};

constructor() {
this.cachePath = "";
this.cachePath = '';
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need cachePath anymore?

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't if we have keyTar working as path is calculated. Also I think Daryl's PR makes this unnecessary. I can pull dev and change this.

private inMemoryCache: InMemoryCache;

constructor(cacheConfig: CacheOptions) {
this.cacheConfig = cacheConfig;
if (this.cacheConfig.cacheLocation! === "fileCache")
if (this.cacheConfig.cacheLocation! === 'fileCache')
Copy link
Contributor

Choose a reason for hiding this comment

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

Temporary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Indication we are using application cache by the user: extension or otherwise instead of just inMemoryCache. Ideas welcome.

Copy link
Contributor

@pkanher617 pkanher617 left a comment

Choose a reason for hiding this comment

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

Looks ok, would like to see tests for these changes if applicable.

@sameerag sameerag merged commit ef1f729 into msal-node-cache-lookup-interface Jun 3, 2020
@sameerag sameerag deleted the msal-node-cache-response branch June 8, 2020 05:24
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.

3 participants