| 259 | } |
| 260 | |
| 261 | static void add_entry(std::multimap<std::string, std::shared_ptr<Persistence::DataEntry>> & entity_store_entry, |
| 262 | std::shared_ptr<Persistence::DataEntry> entry) { |
| 263 | entity_store_entry.emplace(entry->key, entry); |
| 264 | entry_cache.emplace(entry->entry_id, entry); |
| 265 | } |
| 266 | |
| 267 | static void add_entry(int entity_id, std::shared_ptr<Persistence::DataEntry> entry) { |
| 268 | add_entry(store[entity_id], entry); |