Examples of Redis encapsulation libraries

Source: Internet
Author: User
Tags download redis connectionstrings
  1. Download Redis


      1. Modify Redis.windows.conf, if not modified, remote cannot access Redis

        1. will be bind 127.0.0.1 changed it. bind 0.0.0.0 . Note : When entering the production environment, to enable the password, it will be a Redis vulnerability .

        2. Protected-mode Yes change to Protected-mode no

  2. Add Reference

      1. Redisdb

  3. Add NuGet

      1. Redissessionprovider

      2. Update Stackexchange.redis

  4. Modifying a configuration file

      1. <connectionStrings><!--Configure remote Redis address--       <add name= "redisexchangehosts" connectionstring= " 127.0.0.1:6379,allowadmin=true "/>  </connectionStrings>
      2. <appSettings><!--Configuration Directory-    <!--<add key= "Rediskey" value= "Demo:test:"/>--></ Appsettings>

      

Attachment:

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.