diff options
author | xue <> | 2006-02-21 19:04:38 +0000 |
---|---|---|
committer | xue <> | 2006-02-21 19:04:38 +0000 |
commit | 297c685f3c4a5e24267fa30f9e8761f0e7599dfd (patch) | |
tree | e9100b35b780ac1717e1bc22f76f1a5f5f729cb6 /framework/Data/TMemCache.php | |
parent | bc1f23499f784618dba14694fe4261c3fb1cc81d (diff) |
TAPCCache is formally available.
Diffstat (limited to 'framework/Data/TMemCache.php')
-rw-r--r-- | framework/Data/TMemCache.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Data/TMemCache.php b/framework/Data/TMemCache.php index f6ff7da8..b2b1643d 100644 --- a/framework/Data/TMemCache.php +++ b/framework/Data/TMemCache.php @@ -111,9 +111,10 @@ class TMemCache extends TModule implements ICache $this->_cache=new Memcache;
if($this->_cache->connect($this->_host,$this->_port)===false)
throw new TConfigurationException('memcache_connection_failed',$this->_host,$this->_port);
- $this->_prefix=$this->getApplication()->getUniqueID();
+ $application=$this->getApplication();
+ $this->_prefix=$application->getUniqueID();
+ $application->setCache($this);
$this->_initialized=true;
- $this->getApplication()->setCache($this);
}
/**
|