Redis Usage Summary

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.