/**
  * Find all the entries
  * @return array
  */
 public function all($questionId)
 {
     return $this->cache->tags($this->baseCacheKey)->sear($this->getKey($this->key . '-' . $questionId . '-' . $this->classKey), function () use($questionId) {
         return $this->model->all($questionId);
     });
 }
Example #2
0
 /**
  * Find all the entries
  * @return array
  */
 public function all()
 {
     return $this->cache->sear($this->getKey('all'), function () {
         return $this->model->all();
     });
 }