ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:userguide:memcached

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
v5:userguide:memcached [2017/04/15 18:24] mnewnhamv5:userguide:memcached [2017/04/18 10:32] – [Using Debug Mode] fix formatting (use code block) dregad
Line 1: Line 1:
 ====== Memcached Setup ====== ====== Memcached Setup ======
 +
 <WRAP tip> <WRAP tip>
-There are 2 PEAR modules for connecting to a Memcached serverthe [[https://pecl.php.net/package/memcache|PEAR Memcache library]] and the [[https://pecl.php.net/package/memcached|PEAR Memcached library]]. +There are 2 PEAR modules for connecting to a [[wp>Memcached]] serverthe [[https://pecl.php.net/package/memcache|Memcache]] library and the [[https://pecl.php.net/package/memcached|Memcached]] library
-  * Windows support is only available for the Memcache library. +  * Windows support is only available for the //Memcache// library. 
-  * Memcache should be used in PHP 5.x environments on UNIX platforms. +  * //Memcache// should be used in PHP 5.x environments on UNIX platforms. 
-  * Memcached should be used in PHP 7.x environments on UNIX platforms. +  * //Memcached// should be used in PHP 7.x environments on UNIX platforms. 
-  * If both the memcache and memcached libraries are available, the memcache library will be used.+  * If both libraries are available, //Memcache// will be used.
 </WRAP> </WRAP>
 +
 ===== Description ===== ===== Description =====
 This section describes connecting to an already configured Memcache server. Information about installation and configuration of Memcached servers can be found [[https://memcached.org/|here]]. This section describes connecting to an already configured Memcache server. Information about installation and configuration of Memcached servers can be found [[https://memcached.org/|here]].
Line 52: Line 54:
 </code> </code>
 ===== Using Debug Mode  ===== ===== Using Debug Mode  =====
 +
 The size of query results that can be cached by the memcached server is limited by server configuration. The default is quite small. If the query is too large, and [[v5:userguide:debug|debugging]] is enabled, then an error is displayed. The size of query results that can be cached by the memcached server is limited by server configuration. The default is quite small. If the query is too large, and [[v5:userguide:debug|debugging]] is enabled, then an error is displayed.
  
 +<code>
 +3849805e4e026b9e7c485999a24a95c6 cache failure: Item with such key doesn't exists on the memcached server.
 +(this is a notice and not an error)
 +-----<hr>
  
-  3849805e4e026b9e7c485999a24a95c6 cache failure: Item with such key doesn't exists on the memcached server. +(mysqli): SELECT * FROM employees
-  (this is a notice and not an error) +
-  -----<hr>+
  
-  (mysqli): SELECT * FROM employees+------<hr>
  
-  -----<hr> +Notice: MemcachePool::set(): Server 192.168.0.78 (tcp 11211, udp 0) failed with: 
-  Notice: MemcachePool::set(): Server 192.168.0.78 (tcp 11211, udp 0) failed with: +SERVER_ERROR object too large for cache 
-  SERVER_ERROR object too large for cache +(3) in C:\dev\github\mssqlnative-fixes\adodb-memcache.lib.inc.php on line 94 
-  (3) in C:\dev\github\mssqlnative-fixes\adodb-memcache.lib.inc.php on line 94 +Failed to save data at the memcached server!
-  Failed to save data at the memcached server!+
  
-  Cache write error+Cache write error
  
-  PHP Notice:  MemcachePool::set(): Server 192.168.0.78 (tcp 11211, udp 0) failed with: +PHP Notice:  MemcachePool::set(): Server 192.168.0.78 (tcp 11211, udp 0) failed with: 
-  SERVER_ERROR object too large for cache (3) +SERVER_ERROR object too large for cache (3) 
-  in C:\dev\github\mssqlnative-fixes\adodb-memcache.lib.inc.php on line 94+in C:\dev\github\mssqlnative-fixes\adodb-memcache.lib.inc.php on line 94 
 +</code>
  
 ADOdb currently has no mechanism for splitting large queries into smaller chunks. ADOdb currently has no mechanism for splitting large queries into smaller chunks.
v5/userguide/memcached.txt · Last modified: 2022/03/29 18:29 by dregad