src/DataStore.php
public function save(string $key, callable $callback)
    {
        $key = $this->getKey($key);

        return cache()->rememberForever($key, $callback);
    }
public function save(string $key, callable $callback)
    {
        $key = $this->getKey($key);

        return cache()->rememberForever($key, $callback);
    }
public function save ( string $ key , callable $ callback ) { $ key = $ this -> getKey ( $ key ) ; return cache ( ) -> rememberForever ( $ key , $ callback ) ; }
Save the results of the callback to the cache.
@param string $key
@param callable $callback
@return mixed
@throws ModelNotFoundException
Save the results of the callback to the cache .