code: public function buildAll($query)
      {
          /* @var $modelClass ActiveRecord */
          $modelClass = $query->modelClass;
          $key = $this->quoteValue($modelClass::keyPrefix() . ':a:');
  
          return $this->build($query, "n=n+1 pks[n]=redis.call('HGETALL',$key .. pk)", 'pks');
      }
docs: Builds a Lua script for finding a list of records
  @param ActiveQuery $query the query used to build the script
  @return string