Redis Related Records
Export data in Redis
# Connect Redis
redis-cli -h 127.0.0.1 - p 6379-a foobared
# Export keys to file
keys "*" | xargs redis-cli get > /tmp/redis_data. xt
# Export specified key data to
redis-cli get key > /tmp/redis_data.txt
# Use DUP command to export the specified key
redis-cli dump key > /tmp/redis_data.txt
- Related links