|
@@ -159,7 +159,7 @@ public:
|
|
}
|
|
}
|
|
|
|
|
|
std::shared_ptr<datatype> find( keytype key ) override{
|
|
std::shared_ptr<datatype> find( keytype key ) override{
|
|
- if( this->cache.empty() || key >= this->cache.capacity() ){
|
|
|
|
|
|
+ if( this->cache.empty() || key >= this->cache.size() ){
|
|
return TypesafeYamlDatabase<keytype, datatype>::find( key );
|
|
return TypesafeYamlDatabase<keytype, datatype>::find( key );
|
|
}else{
|
|
}else{
|
|
return cache[this->calculateCacheKey( key )];
|
|
return cache[this->calculateCacheKey( key )];
|