redis basic

  • enter command: redis-cli
  • choose db: select 1 (1 is db name)
  • show all keys: keys *
  • del key: del key_name
  • show key type: type key_name
  • show list type key len: llen key_name
  • show list type key value: lrange key_name 0 -1

other:https://www.jianshu.com/p/52552c075bc0

你可能感兴趣的:(redis basic)