| 3089 | } |
| 3090 | |
| 3091 | size_t redisDbPersistentData::size(bool fCachedOnly) const |
| 3092 | { |
| 3093 | if (m_spstorage != nullptr && !m_fAllChanged && !fCachedOnly) |
| 3094 | return m_spstorage->count() + m_cnewKeysPending; |
| 3095 | |
| 3096 | return dictSize(m_pdict) |
| 3097 | + (m_pdbSnapshot ? (m_pdbSnapshot->size(fCachedOnly) - dictSize(m_pdictTombstone)) : 0); |
| 3098 | } |
| 3099 | |
| 3100 | bool redisDbPersistentData::removeCachedValue(const char *key, dictEntry **ppde) |
| 3101 | { |