Limitações e Considerações
🔒 Restrições Técnicas
Tipos de Dados
-- ✅ Dados complexos usando JSON (recomendado para o desenvolvedor)
FEATURE_CONFIG = '{"premium":{"enabled":true,"max_users":50},"debug":{"level":2,"remote_log":true}}'
local function getFeatureConfig()
local configJson = LockSystem.Envs.Get("FEATURE_CONFIG")
if not configJson then return {} end
local success, config = pcall(fromJSON, configJson)
return success and config or {}
end
-- ✅ Alternativa - múltiplas variáveis simples
FEATURE_PREMIUM_ENABLED = "true"
FEATURE_PREMIUM_MAX_USERS = "50"
DEBUG_LEVEL = "2"
DEBUG_REMOTE_LOG = "true"Limitações de Tamanho
⚠️ Considerações de Performance
Cache e Frequência de Acesso
Inicialização vs Runtime
🚫 O que NÃO é Possível
💡 Alternativas para Limitações
Para Dados Complexos - Use JSON Strings
Para Arrays - Use Strings Separadas
Atualizado