Redis officially does not have a version of Windows, for the Windows environment of Redis, there are the following two scenarios
- Microsoft's ported version, but only supported to 3.2
- Versions Win10 and above are executed directly through the WIN10 LIUNX subsystem
Here is an example of a ported version of Windows:
Start service: Redis-server.exe
More startup parameters can be consulted: https://dingyuliang.me/redis-3-2-install-redis-windows/. It is recommended to install as a service.
?
Client API Access:
Official recommended Client interface: Https://redis.io/clients, the most famous for. NET programs is the following two:
- Stackexchange.redis
- Servicestack.redis
However, it is also recommended that csrediscore this compact library, which is the ported version of Csredis under. NET core, as an example.
The sample code is as simple as this.
var? redis?=? New? Csredis. csredisclient("127.0.0.1");
Redis. Set("Test1",?" 123123 ",? 60);
Redis. Get("test1");
Csrediscore static extension class is also very convenient to use.
Var? redis?=?New? Csredis.Csredisclient("127.0.0.1");
Redishelper.Initialization(Redis,? JsonConvert. SerializeObject, huh? JsonConvert. Deserializeobject);
Redishelper. Set("Test1",?" 123123 ",? 60);
redishelper. Get("test1");
Redis Usage Summary