Unix and Linux Discussions Tagged with storage |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
42,323 |
Linux Benchmarks |
|
|
|
2 |
11,705 |
AIX |
|
|
|
3 |
21,377 |
AIX |
|
|
|
1 |
8,000 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
25,569 |
AIX |
|
|
|
10 |
5,468 |
AIX |
|
|
|
3 |
4,751 |
AIX |
|
|
|
0 |
5,973 |
Solaris |
|
|
|
1 |
8,516 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
3,451 |
AIX |
|
|
|
0 |
3,326 |
Solaris |
|
|
|
18 |
19,189 |
AIX |
|
|
|
4 |
3,270 |
Ubuntu |
|
|
|
5 |
3,264 |
Linux |
|
|
|
4 |
3,386 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,742 |
Solaris |
|
|
|
1 |
5,910 |
Programming |
|
|
|
3 |
7,825 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,742 |
Solaris BigAdmin RSS |
|
|
|
6 |
2,562 |
Solaris |
|
|
|
0 |
1,424 |
Solaris BigAdmin RSS |
|
|
|
1 |
5,208 |
AIX |
|
|
|
0 |
2,701 |
OS X Support RSS |
|
|
|
0 |
2,145 |
OS X Support RSS |
|
|
|
0 |
3,437 |
Solaris BigAdmin RSS |
|
|
|
0 |
2,145 |
Solaris BigAdmin RSS |
|
|
|
0 |
2,300 |
Solaris BigAdmin RSS |
|
|
|
0 |
4,617 |
OS X Support RSS |
|
|
|
0 |
3,072 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,519 |
Solaris BigAdmin RSS |
|
|
|
1 |
2,506 |
AIX |
|
|
|
0 |
6,253 |
UNIX and Linux RSS News |
|
|
|
4 |
6,660 |
Shell Programming and Scripting |
|
|
|
0 |
2,111 |
Solaris BigAdmin RSS |
|
|
|
12 |
11,814 |
Solaris |
|
|
|
0 |
5,476 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
4,061 |
HP-UX |
|
|
|
2 |
4,653 |
Filesystems, Disks and Memory |
|
|
|
3 |
8,914 |
Solaris |
|
|
|
0 |
1,955 |
Solaris BigAdmin RSS |
MYSQLND_QC_SET_STORAGE_HANDLER(3) 1 MYSQLND_QC_SET_STORAGE_HANDLER(3)
mysqlnd_qc_set_storage_handler - Change current storage handler
SYNOPSIS
bool mysqlnd_qc_set_storage_handler (string $handler)
DESCRIPTION
Sets the storage handler used by the query cache. A list of available storage handler can be obtained from mysqlnd_qc_get_available_han-
dlers(3). Which storage are available depends on the compile time configuration of the query cache plugin. The default storage handler is
always available. All other storage handler must be enabled explicitly when building the extension.
PARAMETERS
o $handler
- Handler can be of type string representing the name of a built-in storage handler or an object of type mysqlnd_qc_han-
dler_default. The names of the built-in storage handler are default, APC, MEMCACHE, sqlite.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
If changing the storage handler fails a catchable fatal error will be thrown. The query cache cannot operate if the previous storage han-
dler has been shutdown but no new storage handler has been installed.
EXAMPLES
Example #1
mysqlnd_qc_set_storage_handler(3) example
The example shows the output from the built-in default storage handler. Other storage handler may report different data.
<?php
var_dump(mysqlnd_qc_set_storage_handler("memcache"));
if (true === mysqlnd_qc_set_storage_handler("default"))
printf("Default storage handler activated");
/* Catchable fatal error */
var_dump(mysqlnd_qc_set_storage_handler("unknown"));
?>
The above examples will output:
bool(true)
Default storage handler activated
Catchable fatal error: mysqlnd_qc_set_storage_handler(): Unknown handler 'unknown' in (file) on line (line)
SEE ALSO
Installation, mysqlnd_qc_get_available_handlers(3).
PHP Documentation Group MYSQLND_QC_SET_STORAGE_HANDLER(3)