boxunphp/memcached

PHP Memcached Client

Installs: 27

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/boxunphp/memcached

v2.1.2 2020-06-24 01:59 UTC

This package is auto-updated.

Last update: 2025-10-09 11:17:22 UTC


README

PHP Memcached Client

Usage

<?php
$config = array(
    'servers' => array(
        array('host' => '192.168.0.1', 'port' => 11211, 'weight' => 50),
        array('host' => '192.168.0.2', 'port' => 11211, 'weight' => 50),
    ),
    'connect_timeout' => 1000, // 单位微秒
);

$mc = Memcached::getInstance($config);