| 1132 | |
| 1133 | template <typename AllocatorT> |
| 1134 | ObjectCache<AllocatorT>::~ObjectCache() { |
| 1135 | stopAllWorkers(); |
| 1136 | |
| 1137 | if (this->l1Cache_) { |
| 1138 | for (auto itr = this->l1Cache_->begin(); itr != this->l1Cache_->end(); |
| 1139 | ++itr) { |
| 1140 | this->l1Cache_->remove(itr.asHandle()); |
| 1141 | } |
| 1142 | } |
| 1143 | } |
| 1144 | |
| 1145 | template <typename AllocatorT> |
| 1146 | bool ObjectCache<AllocatorT>::remove(folly::StringPiece key) { |