In a small pan bring water with ginger and sugar to a boil, let it simmer for 10 minutes until slightly syrupy, set aside to cool. Once cool mix chilli flakes, cilantro and lime juice, add pineapple, mix well to coat all pieces, cover and refrigerate until time to serve.