/** 设置值,获取值,删除值 **/
redis 127.0.0.1:6379> set key ‘my name is imay‘ //设置key的值 OK redis 127.0.0.1:6379> get key //获取key的值 "my name is imay" redis 127.0.0.1:6379> del key //删除这个key (integer) 1
时间: 2024-11-08 17:34:29
/** 设置值,获取值,删除值 **/
redis 127.0.0.1:6379> set key ‘my name is imay‘ //设置key的值 OK redis 127.0.0.1:6379> get key //获取key的值 "my name is imay" redis 127.0.0.1:6379> del key //删除这个key (integer) 1