private function instance($ds)
  {
    $path = Config::get('app.dir') . Config::get('hibernate.cache.storage');

    if (!is_dir($path))
      mkdir($path, 0777, true);

    if (!is_dir($path))
      throw new CachePermissionException;

    $this->file = $path . $ds . 'hibernate.dat';
  }
private function instance($ds)
  {
    $path = Config::get('app.dir') . Config::get('hibernate.cache.storage');

    if (!is_dir($path))
      mkdir($path, 0777, true);

    if (!is_dir($path))
      throw new CachePermissionException;

    $this->file = $path . $ds . 'hibernate.dat';
  }
private function instance ( $ ds ) { $ path = Config :: get ( 'app.dir' ) . Config :: get ( 'hibernate.cache.storage' ) ; if ( ! is_dir ( $ path ) ) mkdir ( $ path , 0777 , true ) ; if ( ! is_dir ( $ path ) ) throw new CachePermissionException ; $ this -> file = $ path . $ ds . 'hibernate.dat' ; }
Prepare the cache

@param mixed $ds
@return void
Prepare the cache