Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix in memcache.php

  • Loading branch information...
commit 6a51da9188da1f736466e61faa1305f77fc972f2 1 parent 071352c
@pedroresende pedroresende authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Stash/Driver/Sub/Memcache.php
View
6 src/Stash/Driver/Sub/Memcache.php
@@ -30,9 +30,9 @@ public function initialize($servers, array $options = array())
$memcache = new \Memcache();
foreach ($servers as $server) {
- $host = $server[0];
- $port = isset($server[1]) ? $server[1] : 11211;
- $weight = isset($server[2]) ? (int)$server[2] : null;
+ $host = $server['server'];
+ $port = isset($server['port']) ? $server['port'] : 11211;
+ $weight = isset($server['weight']) ? (int)$server['weight'] : null;
if (is_integer($weight)) {
$memcache->addServer($host, $port, true, $weight);
Please sign in to comment.
Something went wrong with that request. Please try again.