Commit 00c466f3 authored by 赵威's avatar 赵威

add printer

parent 7b44c25e
...@@ -17,7 +17,10 @@ object Redis { ...@@ -17,7 +17,10 @@ object Redis {
val ids = seq.map(c => c.id) val ids = seq.map(c => c.id)
if (ids.size > 0) { if (ids.size > 0) {
pRc4.del(key) pRc4.del(key)
ids.foreach(id => pRc4.lpush(key, id)) ids.foreach { id =>
println(id)
pRc4.lpush(key, id)
}
pRc4.expire(key, 60 * 60 * 24 * 15) pRc4.expire(key, 60 * 60 * 24 * 15)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment