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; }
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; }
/** * Get a cache driver instance. * * @param string $driver * @return mixed * @static */ public static function driver($driver = null) { return \Illuminate\Cache\CacheManager::driver($driver); }
/** * 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); }