Home > Article > Backend Development > Example introduction of Redis packaging library
Download Redis
bind 127.0.0.1 to bind 0.0.0.0. Note: When entering the production environment, you must enable the password, otherwise it will be a Redisvulnerability.
protected-mode no
<connectionStrings> <!-- 配置远程redis地址--> <add name="RedisExchangeHosts" connectionString="127.0.0.1:6379,allowadmin=true" /> </connectionStrings>
<appSettings> <!-- 配置目录--> <!--<add key="redisKey" value="Demo:test:" />--> </appSettings>
Attachment:
The above is the detailed content of Example introduction of Redis packaging library. For more information, please follow other related articles on the PHP Chinese website!