Prefix matching for tab completion cache.