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

CacheExtensions.Get undefined #3442

Closed
breyed opened this issue Nov 4, 2019 · 4 comments
Closed

CacheExtensions.Get undefined #3442

breyed opened this issue Nov 4, 2019 · 4 comments
Labels
area-Extensions-Caching doc-idea Indicates issues that are suggestions for new topics new-content Indicates PRs that contain new articles Pri3 Indicates issues/PRs that are low priority

Comments

@breyed
Copy link
Contributor

breyed commented Nov 4, 2019

Does CacheExtensions.Get return null or throw (or do something else) if the key isn't found?

This a core question with no obvious answer (there are arguments for each way of doing it). IntelliSense and the docs need this basic information for the caching part of .NET Core to be ready for prime time.

@dotnet-bot dotnet-bot added the untriaged New issue has not been triaged by the area owner label Nov 4, 2019
@mairaw mairaw added new-content Indicates PRs that contain new articles and removed untriaged New issue has not been triaged by the area owner labels Nov 15, 2019
@mairaw
Copy link
Contributor

mairaw commented Nov 15, 2019

Thanks for your feedback @breyed. We're adding more and more docs each month and we'll start looking into the missing extensions API docs next quarter. /cc @carlossanlop

Perhaps @davidfowl or @Tratcher can help here but the source is here:
https://source.dot.net/#Microsoft.Extensions.Caching.Abstractions/MemoryCacheExtensions.cs

@Tratcher
Copy link
Member

It returns null.

@mairaw mairaw added the doc-idea Indicates issues that are suggestions for new topics label Nov 15, 2019
@PRMerger12 PRMerger12 added the Pri3 Indicates issues/PRs that are low priority label Nov 11, 2020
@ghost
Copy link

ghost commented Feb 4, 2022

Tagging subscribers to this area: @dotnet/area-extensions-caching
See info in area-owners.md if you want to be subscribed.

Issue Details

Does CacheExtensions.Get return null or throw (or do something else) if the key isn't found?

This a core question with no obvious answer (there are arguments for each way of doing it). IntelliSense and the docs need this basic information for the caching part of .NET Core to be ready for prime time.

Author: breyed
Assignees: -
Labels:

new-content, doc-idea, Pri3, area-Extensions-Caching

Milestone: -

@maryamariyan
Copy link
Member

Closing as answered. It's annotated as per PR dotnet/runtime#64018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Extensions-Caching doc-idea Indicates issues that are suggestions for new topics new-content Indicates PRs that contain new articles Pri3 Indicates issues/PRs that are low priority
Projects
None yet
Development

No branches or pull requests

7 participants