return$this->build($query,"n=n+1 if v==nil then v=0 end v=v+redis.call('HGET',$key .. pk,".$this->quoteValue($column).")",'v/n');// TODO properly hash pk
return$this->build($query,"n=n+1 if v==nil then v=0 end v=v+redis.call('HGET',$key .. pk,".$this->quoteValue($column).")",'v/n');
}
/**
...
...
@@ -105,7 +105,7 @@ class LuaScriptBuilder extends \yii\base\Object