Generate a simple hash for cache keys.
int simpleHash(String text) { var hash = 0; for (var i = 0; i < text.length; i++) { hash = ((hash << 5) - hash + text.codeUnitAt(i)) & 0x7FFFFFFF; } return hash; }