public function store($caller, array $parameters = [])
    {
        $this->forget('all', ['columns' => ['*']]);

        $cacheKey = $this->cacheKey($caller, $parameters);

        return $this->cache()->remember($cacheKey, $this->lifetime, function () use ($caller, $parameters) {
            return call_user_func_array([$this->repository->mediator, 'database'], [$caller, $parameters]);
        });
    }
public function store($caller, array $parameters = [])
    {
        $this->forget('all', ['columns' => ['*']]);

        $cacheKey = $this->cacheKey($caller, $parameters);

        return $this->cache()->remember($cacheKey, $this->lifetime, function () use ($caller, $parameters) {
            return call_user_func_array([$this->repository->mediator, 'database'], [$caller, $parameters]);
        });
    }
public function store ( $ caller , array $ parameters = [ ] ) { $ this -> forget ( 'all' , [ 'columns' => [ '*' ] ] ) ; $ cacheKey = $ this -> cacheKey ( $ caller , $ parameters ) ; return $ this -> cache ( ) -> remember ( $ cacheKey , $ this -> lifetime , function ( ) use ( $ caller , $ parameters ) { return call_user_func_array ( [ $ this -> repository -> mediator , 'database' ] , [ $ caller , $ parameters ] ) ; } ) ; }
Store data in cache behind caller with specified parameters.

@param string $caller
@param array  $parameters

@return mixed
Store data in cache behind caller with specified parameters .