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

The difference between Get(string key) and Get<T>(string key) #81

Open
ke-yu opened this issue Dec 11, 2018 · 0 comments
Open

The difference between Get(string key) and Get<T>(string key) #81

ke-yu opened this issue Dec 11, 2018 · 0 comments

Comments

@ke-yu
Copy link

ke-yu commented Dec 11, 2018

I set the value of a key "foo" to empty string. If I use IDistributedCache interface, cache.Get("foo") returns null; if I use IMemcachedClient, cache.Get("foo") returns byte[] correctly.

Digging into the code, looks IDistributedCache.Get calls Get<T>(). Why Get() and Get<T>() handles empty value differently?

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

No branches or pull requests

1 participant