标签: java redis
我正在尝试从Java运行时运行Redis脚本,但这不起作用。有人可以帮忙吗?
String pattern = "a*"; String command = "redis-cli --scan --pattern "+pattern+" | xargs redis-cli del"; Runtime rt = Runtime.getRuntime(); Process pr = rt.exec(command.split(" "));