title: How to pass variable to lua script from java? ( io.lettuce.core )
body: <p>I have a lua script like this that does an hgetall command on a remote redis cluster:</p>
  
  <pre><code>String shaFindAccount = syncCommands.scriptLoad("local hgetAllKeys = function(key) \n" +
                                                  "local acc = redis.call('HGETALL', key)\n" +
                                                  "return acc\n" +
                                                  "end\n");
  </code></pre>
  
  <p>I want to pass a variable to the hgetall call. This is what my eval statement, calling the above script, looks like:</p>
  
  <pre><code>list = syncCommands.evalsha(shaFindAccount, ScriptOutputType.MULTI, key);
  </code></pre>
  
  <p>Where <code>key</code> is a unique identifier (primary key) of acc. Right now this function returns an empty list. </p>
  
  <p>How do I pass a java variable into the above lua script with <code>io.lettuce.core</code>? (There are no connection issues, i can use a similar query with a hardcoded <code>key</code> value and it works)</p>