Skip to content

Conversation

@vanyarock01
Copy link

Related with #41

  • Use global variable to store config between package reloads (var name '\0moonlibs.config.etcd_cache')
  • Don't use local config by default (optional feature), for use set local_cache=true in etcd section in conf.lua
  • Also handle attempt to index _flat nil

* store config in global variable '\0moonlibs.config.etcd_cache'
* save and load config from local cache only if etcd_conf.local_cache defined
* use cache only in call config.etcd.get_all_from_cache
* handle attempt to index nil _flat
@vanyarock01 vanyarock01 force-pushed the local-cache-for-etcd-cfg branch from c5c1111 to 2c20455 Compare May 6, 2025 09:29
@vanyarock01 vanyarock01 changed the title Cache etcd config draft: Cache etcd config May 6, 2025
@vanyarock01 vanyarock01 marked this pull request as draft May 6, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant