14 lines
129 B
Bash
14 lines
129 B
Bash
|
###
|
||
|
# redis sock
|
||
|
###
|
||
|
|
||
|
exec {sock}<>/dev/tcp/"$host"/"$port"
|
||
|
|
||
|
###
|
||
|
# net wrappers
|
||
|
###
|
||
|
|
||
|
redis_send() {
|
||
|
printf %s "$@" >&"$sock"
|
||
|
}
|