title: Configure Memcached in Laravel
body: <p>I've tried to set up memcached with my Laravel</p>
  <h1>Set Driver</h1>
  <p><code>/config/app.php</code></p>
  <pre><code>'default' =&gt; 'memcached',
  </code></pre>
  <hr />
  <h1>Configure Memcache Server</h1>
  <pre><code>'stores' =&gt; [
  
  
      'database' =&gt; [
          'driver' =&gt; 'database',
          'table'  =&gt; 'caches',
          'connection' =&gt; null,
      ],
  
  
      'memcached' =&gt; [
          'driver'  =&gt; 'memcached',
          'servers' =&gt; [
              [
                  'host' =&gt; '127.0.0.1', 'port' =&gt; 11211, 'weight' =&gt; 100,
              ],
          ],
      ]
  
  ],
  </code></pre>
  <hr />
  <h1>Cache</h1>
  <pre><code>Route::get('cache/users', function() {
      return Cache::remember('users', 60, function() {
          return User::all();
      });
  });
  </code></pre>
  <hr />
  <p>How do I know I configure my caching with memcache properly ?
  How do I see what I stored ?</p>