public static function getInstance($name)
    {
        if (!isset(static::$instances[$name])) {
            static::$instances[$name] = new CacheInstance();
        }
        return static::$instances[$name];
    }
public static function getInstance($name)
    {
        if (!isset(static::$instances[$name])) {
            static::$instances[$name] = new CacheInstance();
        }
        return static::$instances[$name];
    }
public static function getInstance ( $ name ) { if ( ! isset ( static :: $ instances [ $ name ] ) ) { static :: $ instances [ $ name ] = new CacheInstance ( ) ; } return static :: $ instances [ $ name ] ; }
Get a named instance of CacheInstance for segregating cache data.

@param string $name The name of the instance to get

@return CacheInstance
Get a named instance of CacheInstance for segregating cache data .