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

Need more Get function in the Cache class #36559

Closed
PrimeObjects opened this issue Aug 11, 2015 · 3 comments
Closed

Need more Get function in the Cache class #36559

PrimeObjects opened this issue Aug 11, 2015 · 3 comments

Comments

@PrimeObjects
Copy link

Hi,

In session class, we have Get, GetInt32, GetString functions.
Can I suggest we also do it to Cache Class to make the design consistent?

Thanks
Gary

@PrimeObjects
Copy link
Author

Also can I suggest to have Set, SetString, SetInt32 ...
Now I have to rely on a string->byte[] function

@shanselman
Copy link

Yes, we need to be able to do "StringSet" for example, if Redis is underneath IDistributedCache...

@aspnet-hello aspnet-hello transferred this issue from aspnet/Caching Dec 13, 2018
@analogrelay analogrelay transferred this issue from dotnet/extensions May 15, 2020
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Extensions-Caching untriaged New issue has not been triaged by the area owner labels May 15, 2020
@analogrelay analogrelay added this to the Future milestone May 15, 2020
@maryamariyan maryamariyan removed the untriaged New issue has not been triaged by the area owner label Jul 1, 2020
@adamsitnik
Copy link
Member

We are not planning to add any Get$TypeName methods to existing MemoryCache, but we may add a new generic MemoryCache<TKey, TValue>. Please follow #48567 for updates.

@adamsitnik adamsitnik closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants