Skip to content

Add new NullDataStore that stores nothing #948

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 3 commits into from
Mar 24, 2017

Conversation

chrisdunelm
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 24, 2017

/// <summary>
/// Asynchronously returns the stored value for the given key or <c>null</c> if not found.
/// This implementation of <see cref="IDataStore"/> will always return <c>null</c>.

This comment was marked as spam.

This comment was marked as spam.

{
}

private Task<T> CompletedTask<T>()

This comment was marked as spam.

This comment was marked as spam.

@jskeet
Copy link
Collaborator

jskeet commented Mar 24, 2017

General aim LGTM though.

@chrisdunelm
Copy link
Contributor Author

PTAL

Copy link
Collaborator

@jskeet jskeet left a comment

Choose a reason for hiding this comment

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

One nit, but otherwise fine.

return tcs.Task;
}

private static Task s_completedTask = CompletedTask<int>();

This comment was marked as spam.

This comment was marked as spam.

@chrisdunelm chrisdunelm merged commit 72596dd into googleapis:master Mar 24, 2017
@chrisdunelm chrisdunelm deleted the nullstore branch March 24, 2017 18:10
@LindaLawton
Copy link
Collaborator

Vote for devnulldatastore rename otherwise awesome idea assuming we document this.
Are you changing default datastore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants