/** * to get singleton instance * * @access public * @return object */ public static function getSingleton($workspace) { if (!self::$instance instanceof self) { self::$instance = new PMmemcached($workspace); } return self::$instance; }