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/18 10:26] – [Memcached Setup] add wikipedia link, formatting, minor rewording dregadv5:userguide:memcached [2017/04/18 10:36] – Reorder sections dregad
Line 1: Line 1:
 ====== Memcached Setup ====== ====== Memcached Setup ======
  
-<WRAP tip>+===== 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]]. 
 + 
 +===== The Memcache Library =====
 There are 2 PEAR modules for connecting to a [[wp>Memcached]] server: the [[https://pecl.php.net/package/memcache|Memcache]] library and the [[https://pecl.php.net/package/memcached|Memcached]] library. There are 2 PEAR modules for connecting to a [[wp>Memcached]] server: the [[https://pecl.php.net/package/memcache|Memcache]] library and the [[https://pecl.php.net/package/memcached|Memcached]] library.
 +<WRAP tip>
   * 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.
Line 9: Line 13:
 </WRAP> </WRAP>
  
-===== 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]]. 
-===== The Memcache Library ===== 
  
  
Line 54: Line 55:
 </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