Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Application of redis-Registration, Login

2025-04-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Field design:

# set login account:

Set user:1:account zhangsan

Set user:2:account lisi

# set user name:

Set user:1:name Zhang San

Set user:2:name Li Si

# set email:

Set user:1:email zhangsan@test.test

Set user:2:email lisi@test.test

# set password:

Set user:1:passwd 123456

Set user:2:passwd 666666

# in order to find a specific person (including name, password, etc.) according to the unique account number and unique mailbox, and then set it:

Set zhangsan:uid 1

Set lisi:uid 2

Set zhangsan@test.test:uid 1

Set lisi@test.test:uid 2

Add 1 to global:uid for each registered user

Incr global:uid

Php code example:

Login.php

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report