10 defined(
'JPATH_PLATFORM') or die;
30 public function __construct($options = array())
32 if (!self::isSupported())
34 throw new RuntimeException(
'APC Extension is not available', 404);
37 parent::__construct($options);
50 public function read($id)
52 $sess_id =
'sess_' . $id;
53 return (
string) apc_fetch($sess_id);
66 public function write($id, $session_data)
68 $sess_id =
'sess_' . $id;
69 return apc_store($sess_id, $session_data, ini_get(
"session.gc_maxlifetime"));
81 public function destroy($id)
83 $sess_id =
'sess_' . $id;
84 return apc_delete($sess_id);
94 public static function isSupported()
96 return extension_loaded(
'apc');