PHP » GoLang |
login |
register |
about
|
GoLang mysqlnd_memcache_set
request it (327)
GoLang replacement for PHP's mysqlnd_memcache_set
[edit | history]
mysqlnd_memcache_set(PECL mysqlnd_memcache >= 1.0.0) mysqlnd_memcache_set — Associate a MySQL connection with a Memcache connection Description
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(). Parameters
Return Values
Examples
Example #1 mysqlnd_memcache_set() example with var_dump() as a simple debugging callback.
<?php The above example will output: Sending query for id via Memcache: bool(true) Sending query for f1 via Memcache: bool(false) var_dump won't be invoked: |
more
Recently updated
more
Most requested
more
Last requests
|