public function extendCache(Application $app)
    {
        $app->resolving('cache', function(CacheManager $cache) {
            $cache->extend('memcache', function ($app) {
                return $app['memcache.store'];
            });
        });
    }
public function extendCache(Application $app)
    {
        $app->resolving('cache', function(CacheManager $cache) {
            $cache->extend('memcache', function ($app) {
                return $app['memcache.store'];
            });
        });
    }
public function extendCache ( Application $ app ) { $ app -> resolving ( 'cache' , function ( CacheManager $ cache ) { $ cache -> extend ( 'memcache' , function ( $ app ) { return $ app [ 'memcache.store' ] ; } ) ; } ) ; }
Add the memcache driver to the cache manager.

@param \Illuminate\Contracts\Foundation\Application  $app
Add the memcache driver to the cache manager .