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

Redis imports text data in bulk

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

Share

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

# check the imported text file, which contains specific Redis commands

# cat 20180208.txt

Hdel user.user.base 317986

Hdel user.user.base 371149

Hdel user.user.base 370964

Hdel user.user.base 371291

Hdel user.user.base 370906

Hdel user.user.base 371035

Hdel user.user.base 371086

Hdel user.user.base 371042

Hdel user.user.base 370838

Hdel user.user.base 371347

Hdel user.user.base 371065

Hdel user.user.base 371280

Hdel user.user.base 371307

In the redis-cli client tool, there is a plumbing option

# redis-cli-help

-- pipe Transfer raw Redis protocol from stdin to server.

Perform data import

# cat 20180208.txt | / usr/bin/redis-cli-- pipe

All data transferred. Waiting for the last reply...

Last reply received from server.

Errors: 0, replies: 593

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