QVariant ClientQCache::lookUp(const QString& attributeId) { QMutexLocker locker(&mutex); if (!cache.contains(attributeId)) { return QVariant(); } CachedValue<QVariant>* entry = cache.object(attributeId); return entry->getValue(); }
Variant ClientQCache::lookUp(const std::string& attributeId) { std::lock_guard<std::mutex> lock(mutex); if (!cache.contains(attributeId)) { return Variant::NULL_VARIANT(); } CachedValue<Variant>* entry = cache.object(attributeId); return entry->getValue(); }