public function useAppDataDriver(string $keyPrefix = '.temp/cache/'): self
    {
        $app = App::get();
        $this->setDriver(new \BearFramework\App\DataCacheDriver($app->data, $keyPrefix));
        return $this;
    }
public function useAppDataDriver(string $keyPrefix = '.temp/cache/'): self
    {
        $app = App::get();
        $this->setDriver(new \BearFramework\App\DataCacheDriver($app->data, $keyPrefix));
        return $this;
    }
public function useAppDataDriver ( string $ keyPrefix = '.temp/cache/' ) : self { $ app = App :: get ( ) ; $ this -> setDriver ( new \ BearFramework \ App \ DataCacheDriver ( $ app -> data , $ keyPrefix ) ) ; return $ this ; }
Enables the app cache driver. The cached data will be stored in the app data repository.

@param string $keyPrefix The key prefix for the cache items.
@return self Returns a reference to itself.
Enables the app cache driver . The cached data will be stored in the app data repository .