This section points to a deprecated package.
Is there a replacement package?
To install Redis on your local machine:
redis-server from a command prompt.⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@mohsinnasir do you know if there's a replacement?
@Rick-Anderson this one works perfect - https://github.com/tporadowski/redis
I just tried it with the code from the MS docs example:
services.AddStackExchangeRedisCache(options =>
{
options.Configuration = "localhost";
options.InstanceName = "SampleInstance";
});
and it just works.
@petrsvihlik redis generally targets linux OS, so for windows you may find redis packages deprecated or supported unofficially.
For windows based distrbuted caching software you may wanna try NCache as mentioned here.
@Rick-Anderson for native windows there is none provided by MSOPENTECH. However, WSL may be a good choice to use redis on windows as mentioned here
@mohsinnasir why don't I just change that section to link to Azure Cache for Redis
That's what you'll need for production anyway. You can use it in dev too.
@mohsinnasir yeah, I know. I was looking for something that I could use to test my code quickly on Windows.
@Rick-Anderson yeah, I generally agree with that. but that was something I was too lazy to do :D so I was glad that I found https://github.com/tporadowski/redis and that it worked out of the box.
Most helpful comment
@Rick-Anderson this one works perfect - https://github.com/tporadowski/redis
I just tried it with the code from the MS docs example:
and it just works.