✨ feat: refactor environment variable initialization and introduce new constant types for API and context keys
This commit is contained in:
1 parent
448184a250
commit
f14f4eaf1a
43 files changed
+749
-576
No files matched your search
@@ -16,6 +16,10 @@ import (
|
||||
var RDB *redis.Client
|
||||
var RedisEnabled = true
|
||||
|
||||
func RedisKeyCacheSeconds() int {
|
||||
return SyncFrequency
|
||||
}
|
||||
|
||||
// InitRedisClient This function is called after init()
|
||||
func InitRedisClient() (err error) {
|
||||
if os.Getenv("REDIS_CONN_STRING") == "" {
|
||||
|
||||
Reference in new issue
Block a user