Skip to content

Change | Enclave caching key#1388

Merged
rene-ye merged 2 commits intomicrosoft:devfrom
rene-ye:aev2Caching
Jul 20, 2020
Merged

Change | Enclave caching key#1388
rene-ye merged 2 commits intomicrosoft:devfrom
rene-ye:aev2Caching

Conversation

@rene-ye
Copy link
Copy Markdown
Member

@rene-ye rene-ye commented Jul 15, 2020

Added database name to caching key. The new key format is serverName + databaseName + attestationUrl.

Removed an unused package privatate SQLServerConnection getter getScatalog() which returned the same value as the public getter getCatalog.

Changed cache key lookup to occur before calling sp_de because doing so after would cause a new connection to call sp_de with 3 parameters which would create another enclave session.

@rene-ye rene-ye added this to the 8.4.0 milestone Jul 16, 2020
Copy link
Copy Markdown
Contributor

@lilgreenbird lilgreenbird left a comment

Choose a reason for hiding this comment

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

add tests

@rene-ye rene-ye merged commit 423be4a into microsoft:dev Jul 20, 2020
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.

4 participants