Open sancar opened 7 years ago
template<
class Key,
class T,
class Compare = std::less<Key>,
class Allocator = std::allocator<std::pair<const Key, T> >
> class map;
assert(0)
where it seems in most of it is avoidable.
template <typename V>
class NearCacheRecord {
...
virtual void setValue(const boost::shared_ptr<V> &value) {
assert(0);
}
...
}
For example the usage above can be converted to following without a problem.
template <typename V>
class NearCacheRecord {
...
virtual void setValue(const boost::shared_ptr<V> &value) = 0;
...
}
[ ]DataStructureAdepter
and IMapDataStructureAdapter
can be removed
example last method of following method from NearCacheManager
class is never used. And this seems to be only use of DataStructureAdepter
and IMapDataStructureAdapter
template<typename K, typename V, typename KS>
boost::shared_ptr<NearCache<KS, V> > getOrCreateNearCache(
const std::string &name, const config::NearCacheConfig<K, V> &nearCacheConfig,
std::auto_ptr<adapter::DataStructureAdapter<K, V> > &dataStructureAdapter)
All possible issues related to near-cache implementation will be listed in this issue