]> git.cworth.org Git - notmuch/blobdiff - lib/config.cc
lib/config: add _notmuch_config_cache
[notmuch] / lib / config.cc
index d14f5422fa947e365dace7e06995f7921641c1c9..fe67ef416a0d08083281d4890ed8d473155b85a4 100644 (file)
@@ -464,3 +464,8 @@ notmuch_config_set (notmuch_database_t *notmuch, notmuch_config_key_t key, const
 
     return notmuch_database_set_config (notmuch, _notmuch_config_key_to_string (key), val);
 }
+
+void
+_notmuch_config_cache (notmuch_database_t *notmuch, notmuch_config_key_t key, const char *val) {
+    _notmuch_string_map_set (notmuch->config, _notmuch_config_key_to_string (key), val);
+}