fix: add a value do the redis db to draw
According to the new redis db value.
This commit is contained in:
parent
259fdeb7b0
commit
0f72b64a15
@ -9,6 +9,10 @@ fn do_something() -> redis::RedisResult<()> {
|
|||||||
let client = Client::open("redis://127.0.0.1/")?;
|
let client = Client::open("redis://127.0.0.1/")?;
|
||||||
let mut con: Connection = client.get_connection()?;
|
let mut con: Connection = client.get_connection()?;
|
||||||
|
|
||||||
|
let _ = con.set("/order/0", 0)?;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* do something here */
|
/* do something here */
|
||||||
//let val : String = con.get("/pl/0/0")?;
|
//let val : String = con.get("/pl/0/0")?;
|
||||||
let _ = con.set("/pl/0/0", "[(150.0, 230.0, 65280), \
|
let _ = con.set("/pl/0/0", "[(150.0, 230.0, 65280), \
|
||||||
@ -16,7 +20,7 @@ fn do_something() -> redis::RedisResult<()> {
|
|||||||
(230.0, 170.0, 65280), \
|
(230.0, 170.0, 65280), \
|
||||||
(210.0, 230.0, 65280), \
|
(210.0, 230.0, 65280), \
|
||||||
(150.0, 230.0, 65280)]")?;
|
(150.0, 230.0, 65280)]")?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user