mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-19 14:51:27 +00:00
21 lines
728 B
Plaintext
21 lines
728 B
Plaintext
/// Config holder for all redis related things
|
|
/datum/configuration_section/redis_configuration
|
|
protection_state = PROTECTION_PRIVATE // NO! BAD!
|
|
/// Redis enabled or not
|
|
var/enabled = FALSE
|
|
/// Redis connection string. Includes passphrase if needed.
|
|
var/connstring = "redis://127.0.0.1/"
|
|
|
|
/datum/configuration_section/redis_configuration/load_data(list/data)
|
|
// UNIT TESTS ARE DEFINED - USE CUSTOM CI VALUES
|
|
#ifdef UNIT_TESTS
|
|
|
|
// enabled = TRUE
|
|
|
|
#else
|
|
// Load the normal config. Were not in CI mode
|
|
// Use the load wrappers here. That way the default isnt made 'null' if you comment out the config line
|
|
CONFIG_LOAD_BOOL(enabled, data["redis_enabled"])
|
|
CONFIG_LOAD_STR(connstring, data["redis_connstring"])
|
|
#endif
|