1、keys * :查看所有键

 

 

 

 

 

2、exists key:判断key是否存在,1表示存在,0表示不存在

3、del key1 key2...:删除key

4、type key:获取key的类型