envGetters static method

List<String> envGetters(
  1. String store
)

the getters of AppEnv that lib/config/cache.dart reads

Implementation

static List<String> envGetters(String store) {
  return <String>[
    '/// memory, file, redis or database\n'
        "  String get cacheStore => 'file';",
    if (store == 'redis') ...<String>[
      "String get redisHost => '127.0.0.1';",
      'int get redisPort => 6379;',
      '/// empty: no password\n  String? get redisPassword;',
    ],
  ];
}