connect(IPC_REDIS_IP, IPC_REDIS_PORT); self::$redis->select(IPC_REDIS_DATABASE); } } /** * Indicates if the shared memory is active * * @access public * @return boolean */ public function IsActive() { $str = "Testing connection"; return strcmp(self::$redis->echo($str), $str) == 0; } /** * Reinitializes inter-process data storage * * @access public * @return boolean */ public function ReInitSharedMem() { return self::$redis->flushDB(); } }