Closed trayburn closed 4 years ago
Rough sketch of objects:
ConfigManager + Get(key) + Set(key, value) + Clear(key, deep) + GetSpecific(env, store, key) + SetSpecific(env, store, key, value) + ClearSpecific(env, store, key) + GetEnvironments() + GetStores(env) + GetKeys(env, store) ConfigStore + Clear(key) + Get(key) + Set(key, value) + GetKeys()
Also need Builder options which nominally should look something like:
new ConfigManagerOptionsBuilder() .Add("development", cfg => { cfg.AddInMemoryStore() .AddInMemoryCache(new InMemoryCacheOptionsBuilder(x => { x.SetTimeout(new Timespan(0,0,5)); }).Options()); }).Options;
Need to support at least:
InMemoryStore
RedisStore
EnvironmentStore
SettingsStore
DatabaseStore
Important Opinions
Rough sketch of objects:
Also need Builder options which nominally should look something like:
Need to support at least:
InMemoryStore
for testingRedisStore
EnvironmentStore
SettingsStore
DatabaseStore
based on Highway 7Important Opinions