Version 3.1.4
This commit is contained in:
1 parent
1d4720f3e2
commit
ae5c01cc78
2563 files changed
+283048
-240689
No files matched your search
@@ -1,19 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* IP.Board v3.1.4
|
||||
* This class acts as a cache layer, allowing you to store and retrieve data in
|
||||
* external cache sources such as memcache or APC
|
||||
* Last Updated: $Date: 2009-07-07 21:22:30 -0400 (Tue, 07 Jul 2009) $
|
||||
* Last Updated: $Date: 2010-08-04 12:03:04 -0400 (Wed, 04 Aug 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Services Kernel
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @subpackage Kernel
|
||||
* @link http://www.invisionpower.com
|
||||
* @since Friday 19th May 2006 17:33
|
||||
* @version $Revision: 291 $
|
||||
* @version $Revision: 444 $
|
||||
*
|
||||
* Basic Usage Examples
|
||||
* <code>
|
||||
@@ -105,6 +108,16 @@ class classCacheMemcache implements interfaceCache
|
||||
memcache_add_server( $this->link, $server_info['memcache_server_3'], $server_info['memcache_port_3'] );
|
||||
}
|
||||
|
||||
if( isset($server_info['memcache_server_4']) AND isset($server_info['memcache_port_4']) )
|
||||
{
|
||||
memcache_add_server( $this->link, $server_info['memcache_server_4'], $server_info['memcache_port_4'] );
|
||||
}
|
||||
|
||||
if( isset($server_info['memcache_server_5']) AND isset($server_info['memcache_port_5']) )
|
||||
{
|
||||
memcache_add_server( $this->link, $server_info['memcache_server_5'], $server_info['memcache_port_5'] );
|
||||
}
|
||||
|
||||
if( function_exists('memcache_set_compress_threshold') )
|
||||
{
|
||||
memcache_set_compress_threshold( $this->link, 20000, 0.2 );
|
||||
@@ -179,6 +192,6 @@ class classCacheMemcache implements interfaceCache
|
||||
*/
|
||||
public function removeFromCache( $key )
|
||||
{
|
||||
return memcache_delete( $this->link, md5( $this->identifier . $key ) );
|
||||
return memcache_delete( $this->link, md5( $this->identifier . $key ), 0 );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user