我可以在Redis的Redis引擎的int sysAutoRotate = 0;
try {
sysAutoRotate = Settings.System.getInt(getContentResolver(), Settings.System.ACCELEROMETER_ROTATION);
} catch (SettingNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
命令中保存客户端IP吗?
这样的事情:
SET
答案 0 :(得分:8)
假设您不了解SET
,您可以执行以下操作:
CLIENT SETNAME
CLIENT LIST
127.0.0.1:6379> client getname
(nil)
127.0.0.1:6379> client setname FreddyFrog
OK
127.0.0.1:6379> client getname
"FreddyFrog"
127.0.0.1:6379> client list
id=4 addr=127.0.0.1:49426 fd=6 name=FreddyFrog age=25 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client
命令示例强>
{{1}}