getConfig

@Cacheable(value = ["system_configs"], key = "#key")
fun getConfig(key: String, defaultValue: String = ""): String(source)

Obtém uma configuração. Se não estiver no Redis, busca no DB. Se não existir no DB, retorna o valor padrão fornecido.