PHP » GoLang |
login |
register |
about
|
GoLang mysqlnd_memcache_get_config
request it (341)
GoLang replacement for PHP's mysqlnd_memcache_get_config
[edit | history]
PHP mysqlnd_memcache_get_configPHP original manual for mysqlnd_memcache_get_config [ show | php.net ]mysqlnd_memcache_get_config(PECL mysqlnd_memcache >= 1.0.0) mysqlnd_memcache_get_config — Returns information about the plugin configuration DescriptionThis function returns an array of all mysqlnd_memcache related configuration information that is attached to the MySQL connection. This includes MySQL, the Memcache object provided via mysqlnd_memcache_set(), and the table mapping configuration that was automatically collected from the MySQL Server. ParametersReturn Values
An array of mysqlnd_memcache configuration information on success, otherwise The returned array has these elements:
Examples
Example #1 mysqlnd_memcache_get_config() example
<?php The above example will output: array(4) { ["memcached"]=> object(Memcached)#2 (0) { } ["pattern"]=> string(125) "/^\s*SELECT\s*(.+?)\s*FROM\s*`?([a-z0-9_]+)`?\s*WHERE\s*`?([a-z0-9_]+)`?\s*=\s*(?(?=["'])["']([^"']*)["']|([0-9e\.]*))\s*$/is" ["mappings"]=> array(1) { ["mymem_test"]=> array(6) { ["prefix"]=> string(13) "@@mymem_test." ["schema_name"]=> string(4) "test" ["table_name"]=> string(10) "mymem_test" ["id_field_name"]=> string(2) "id" ["separator"]=> string(1) "|" ["fields"]=> array(3) { [0]=> string(2) "f1" [1]=> string(2) "f2" [2]=> string(2) "f3" } } } ["mapping_query"]=> string(209) " SELECT c.name, CONCAT('@@', c.name, (SELECT value FROM innodb_memcache.config_options WHERE name = 'table_map_delimiter')) AS key_prefix, c.db_schema, c.db_table, c.key_columns, c.value_columns, (SELECT value FROM innodb_memcache.config_options WHERE name = 'separator') AS sep FROM innodb_memcache.containers c" } |
more
Recently updated
more
Most requested
more
Last requests
|