/**
* Store the given data into cache.
*
* @param string
* $p_key The cache key for the object
* @param mixed
* $p_data The expected data to be cached
* @param int optional
* $p_ttl The ttl for the object in cache
*
* @return boolean
* TRUE on success, FALSE on failure
*/
public function store($p_key, $p_data, $p_ttl = 0)
{
if (!self::$m_enabled) {
return false;
}
self::$m_storeRequests++;
$p_data = $this->serialize($p_data);
return $this->m_cacheEngine->storeValue($this->genKey($p_key), $p_data, $p_ttl);
}