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

Update Caching for SDK 3.x #84

Closed
brantburnett opened this issue Sep 12, 2020 · 1 comment · Fixed by #88
Closed

Update Caching for SDK 3.x #84

brantburnett opened this issue Sep 12, 2020 · 1 comment · Fixed by #88

Comments

@brantburnett
Copy link
Collaborator

No description provided.

@brantburnett brantburnett added this to the SDK 3.x Compatibility milestone Sep 12, 2020
brantburnett added a commit that referenced this issue Sep 14, 2020
Motivation
----------
Provide support for distributed cache to users of the 3.x SDK.

Modifications
-------------
Upgrade to SDK 3.x. Rewrite Couchbase to be based on an
ICouchbaseCollection instead of an IBucket. Also update to work with
only async methods from ICouchbaseCollection, and to specifically force
the use of the LegacyTranscoder for byte arrays.

Update the DI system to allow injecting a specific collection, but by
default inject the default collection from the bucket specified. Also
drop the overload that accepts a bucket password.

Upgrade to C# 8 and enable nullable reference types.

Update unit tests, the example project, and documentation.

Results
-------
SDK 3.x compatibility, with future-proofing for scopes/collections.

The `.GetAwaiter().GetResult()` approach to async from sync is not
perfect, as it could cause deadlocks depending on the
SynchronizationContext in use. However, it's a decent and quick approach
for now that may be improved in the future.

Closes #84
brantburnett added a commit that referenced this issue Sep 14, 2020
Motivation
----------
Provide support for distributed cache to users of the 3.x SDK.

Modifications
-------------
Upgrade to SDK 3.x. Rewrite Couchbase to be based on an
ICouchbaseCollection instead of an IBucket. Also update to work with
only async methods from ICouchbaseCollection, and to specifically force
the use of the LegacyTranscoder for byte arrays.

Update the DI system to allow injecting a specific collection, but by
default inject the default collection from the bucket specified. Also
drop the overload that accepts a bucket password.

Upgrade to C# 8 and enable nullable reference types.

Update unit tests, the example project, and documentation.

Results
-------
SDK 3.x compatibility, with future-proofing for scopes/collections.

The `.GetAwaiter().GetResult()` approach to async from sync is not
perfect, as it could cause deadlocks depending on the
SynchronizationContext in use. However, it's a decent and quick approach
for now that may be improved in the future.

Closes #84
brantburnett added a commit that referenced this issue Sep 14, 2020
Motivation
----------
Provide support for distributed cache to users of the 3.x SDK.

Modifications
-------------
Upgrade to SDK 3.x. Rewrite Couchbase to be based on an
ICouchbaseCollection instead of an IBucket. Also update to work with
only async methods from ICouchbaseCollection, and to specifically force
the use of the LegacyTranscoder for byte arrays.

Update the DI system to allow injecting a specific collection, but by
default inject the default collection from the bucket specified. Also
drop the overload that accepts a bucket password.

Upgrade to C# 8 and enable nullable reference types.

Update unit tests, the example project, and documentation.

Results
-------
SDK 3.x compatibility, with future-proofing for scopes/collections.

The `.GetAwaiter().GetResult()` approach to async from sync is not
perfect, as it could cause deadlocks depending on the
SynchronizationContext in use. However, it's a decent and quick approach
for now that may be improved in the future.

Closes #84
brantburnett added a commit that referenced this issue Sep 16, 2020
Motivation
----------
Provide support for distributed cache to users of the 3.x SDK.

Modifications
-------------
Upgrade to SDK 3.x. Rewrite Couchbase to be based on an
ICouchbaseCollection instead of an IBucket. Also update to work with
only async methods from ICouchbaseCollection, and to specifically force
the use of the LegacyTranscoder for byte arrays.

Update the DI system to allow injecting a specific collection, but by
default inject the default collection from the bucket specified. Also
drop the overload that accepts a bucket password.

Upgrade to C# 8 and enable nullable reference types.

Update unit tests, the example project, and documentation.

Results
-------
SDK 3.x compatibility, with future-proofing for scopes/collections.

The `.GetAwaiter().GetResult()` approach to async from sync is not
perfect, as it could cause deadlocks depending on the
SynchronizationContext in use. However, it's a decent and quick approach
for now that may be improved in the future.

Closes #84
@zakarias68
Copy link

@brantburnett Hi, I wanted to follow up on the status of this and the session conversion to SDK 3.x. If this is done, is it possible for this be posted to NuGet for consumption?

Also, what is the status right now on the session package?

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 a pull request may close this issue.

2 participants