hazelcast / hazelcast-cpp-client

Hazelcast IMDG C++ Client
https://hazelcast.com/clients/cplusplus/
Apache License 2.0
82 stars 45 forks source link

Code review after nearcache #215

Open sancar opened 7 years ago

sancar commented 7 years ago

All possible issues related to near-cache implementation will be listed in this issue

sancar commented 7 years ago
sancar commented 7 years ago
sancar commented 7 years ago
sancar commented 7 years ago
template<
    class Key,
    class T,
    class Compare = std::less<Key>,
    class Allocator = std::allocator<std::pair<const Key, T> >
> class map;
sancar commented 7 years ago
sancar commented 7 years ago
sancar commented 7 years ago
sancar commented 7 years ago
sancar commented 7 years ago

[ ]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) 
sancar commented 7 years ago
sancar commented 7 years ago