Sha256: 81f36fe916881f1147ad39186e8fb88b1c792e4186aba988389bc9ec597807ff

Contents?: true

Size: 495 Bytes

Versions: 28

Compression:

Stored size: 495 Bytes

Contents

#!/bin/sh

port=22123
socatopt="-t 1 -T 1 -b 65537"

val=`echo 6^6^6 | bc`
val=`printf "%s\r\n" "${val}"`
vallen=`printf "%s" "${val}" | wc -c`
set_command=""

# build
for i in `seq 1 512`; do
    if [ `expr $i % 2` -eq "0" ]; then
        key="foo"
    else
        key="bar"
    fi
    key=`printf "%s%d" "${key}" "${i}"`

    set_command="set ${key} 0 0 ${vallen}\r\n${val}\r\n"

    printf "%b" "$set_command" | socat ${socatopt} - TCP:localhost:${port},nodelay,shut-down,nonblock=1 &
done

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
nutcracker-0.4.1.23 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.4.1.22 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.4.1.21 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.4.1.20 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.4.1.19 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.4.1.18 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.4.0.16 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.4.0.15 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.4.0.14 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.4.0.13 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.3.0.12 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.2.4.12 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.2.4.11 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.2.4.10 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.2.4.10mac ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.2.4.9 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.2.4.mac9 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.2.4.8 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.2.4.7 ext/nutcracker/scripts/populate_memcached.sh
nutcracker-0.2.4.6 ext/nutcracker/scripts/populate_memcached.sh