Skip to content

Instantly share code, notes, and snippets.

@markuman
Created October 1, 2015 19:33
Show Gist options
  • Save markuman/188c94ee34f56f98f08f to your computer and use it in GitHub Desktop.
Save markuman/188c94ee34f56f98f08f to your computer and use it in GitHub Desktop.
Nine Nine Nine 3/4
127.0.0.1:6379> eval 'local seed = redis.call("TIME") math.randomseet(tonumber(seed[1] .. "." .. seed[2])) return redis.call("SET", "mykey", string.format("%f", math.random()))' 0
(error) ERR Error running script (call to f_a26eed7f7bc45da4442c1a93ab5d56b42e72aff3): @user_script:1: @user_script: 1: Write commands not allowed after non deterministic commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment