update : 2015.11.03
php.shukuma.com검색:
|
mysqlnd_memcache_set(PECL mysqlnd_memcache >= 1.0.0) mysqlnd_memcache_set — Associate a MySQL connection with a Memcache connection 설명
bool
mysqlnd_memcache_set
( mixed
$mysql_connection
[, Memcached $memcache_connection
[, string $pattern
[, callback $callback
]]] )
Associate While associating a MySQL connection with a Memcache connection, this function will query the MySQL Server for its configuration. It will automatically detect whether the server is configured to use the InnoDB Memcache Daemon Plugin or MySQL Cluster NDB Memcache support. It will also query the server to automatically identify exported tables and other configuration options. The results of this automatic configuration can be retrieved using mysqlnd_memcache_get_config(). 인수
반환값
예제
Example #1 mysqlnd_memcache_set() example with var_dump() as a simple debugging callback.
<?php 위 예제의 출력: Sending query for id via Memcache: bool(true) Sending query for f1 via Memcache: bool(false) var_dump won't be invoked: |