From b4e9f6795206fab6b952f814ccf812677a34c635 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 7 Dec 2005 00:32:29 +0000 Subject: --- framework/Data/TMemCache.php | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'framework/Data/TMemCache.php') diff --git a/framework/Data/TMemCache.php b/framework/Data/TMemCache.php index b78014fb..d50c5b9d 100644 --- a/framework/Data/TMemCache.php +++ b/framework/Data/TMemCache.php @@ -62,7 +62,7 @@ * @package System.Data * @since 3.0 */ -class TMemCache extends TComponent implements IModule, ICache +class TMemCache extends TModule implements ICache { /** * @var boolean if the module is initialized @@ -84,10 +84,6 @@ class TMemCache extends TComponent implements IModule, ICache * @var integer the port number of the memcache server */ private $_port=11211; - /** - * @var string ID of this module - */ - private $_id=''; /** * Destructor. @@ -111,6 +107,8 @@ class TMemCache extends TComponent implements IModule, ICache */ public function init($application,$config) { + parent::init($application,$config); + if(!extension_loaded('memcache')) throw new TConfigurationException('memcache_extension_required'); $this->_cache=new Memcache; @@ -122,22 +120,6 @@ class TMemCache extends TComponent implements IModule, ICache $application->setCache($this); } - /** - * @return string id of this module - */ - public function getID() - { - return $this->_id; - } - - /** - * @param string id of this module - */ - public function setID($value) - { - $this->_id=$value; - } - /** * @return string host name of the memcache server */ -- cgit v1.2.3