コード例 #1
0
ファイル: Cache.php プロジェクト: CFLOVEYR/hook
 public static function getStore()
 {
     if (!static::$store) {
         $manager = new CacheManager(new ConfigContainer(array('db' => \DLModel::getConnectionResolver(), 'encrypter' => Encrypter::getInstance(), 'config' => array('cache.driver' => 'database', 'cache.prefix' => 'schema_', 'cache.stores.database' => array('driver' => 'database', 'connection' => 'default', 'table' => 'cache')))));
         static::$store = $manager->driver('database')->getStore();
     }
     return static::$store;
 }
コード例 #2
0
 public static function make()
 {
     if (is_null(self::$instance)) {
         $cacheManager = new CacheManager(array('files' => new FileSystem(), 'config' => array('cache.driver' => 'file', 'cache.path' => path('cache'), 'cache.prefix' => 'wordpress_')));
         $cache = $cacheManager->driver();
         self::$instance = new static($cache);
     }
     return self::$instance;
 }
コード例 #3
0
ファイル: _ide_helper.php プロジェクト: satriashp/tour
 /**
  * Get a cache driver instance.
  *
  * @param string $driver
  * @return mixed 
  * @static 
  */
 public static function driver($driver = null)
 {
     return \Illuminate\Cache\CacheManager::driver($driver);
 }
コード例 #4
0
ファイル: _ide_helper.php プロジェクト: nmkr/basic-starter
 /**
  * Get a driver instance.
  *
  * @param string $driver
  * @return mixed 
  * @static 
  */
 public static function driver($driver = null)
 {
     //Method inherited from \Illuminate\Support\Manager
     return \Illuminate\Cache\CacheManager::driver($driver);
 }