Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6898 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6898 Rev 7047
Línea 40... Línea 40...
40
    public function __construct($config)
40
    public function __construct($config)
41
    {
41
    {
42
        $this->ttl    = intval($config['leaderslinked.memcache.ttl'], 10);
42
        $this->ttl    = intval($config['leaderslinked.memcache.ttl'], 10);
43
        $this->host   = strval($config['leaderslinked.memcache.host']);
43
        $this->host   = strval($config['leaderslinked.memcache.host']);
44
        $this->port   = intval($config['leaderslinked.memcache.port'], 10);
44
        $this->port   = intval($config['leaderslinked.memcache.port'], 10);
45
        
-
 
46
        
45
 
47
        if(class_exists(\Memcached::class)) {
46
        if(class_exists(\Memcached::class)) {
48
            $this->memcache = new \Memcached();
47
            $this->memcache = new \Memcached();
49
            $this->memcache->addServer($this->host, $this->port);
48
            $this->memcache->addServer($this->host, $this->port);
50
        } else  if(class_exists(\Memcache::class)) {
49
        } else  if(class_exists(\Memcache::class)) {
51
            $this->memcache = new \Memcache();
50
            $this->memcache = new \Memcache();
52
            $this->memcache->addserver($this->host, $this->port);
51
            $this->memcache->addserver($this->host, $this->port);
53
        }
52
        }
54
 
-
 
55
    }
53
    }
Línea 56... Línea 54...
56
    
54
    
57
    /**
55
    /**
58
     * 
56
     *