Esempio n. 1
0
 /**
  * Generate the unique cache key for the current query.
  *
  * @return string
  */
 public function generateCacheKey()
 {
     $key = ['connection' => $this->collection->getDatabaseName(), 'collection' => $this->collection->getCollectionName(), 'wheres' => $this->wheres, 'columns' => $this->columns, 'groups' => $this->groups, 'orders' => $this->orders, 'offset' => $this->offset, 'limit' => $this->limit, 'aggregate' => $this->aggregate];
     return md5(serialize(array_values($key)));
 }