16 #ifndef HAZELCAST_CLIENT_INTERNAL_ADAPTER_IMAPDATASTRUCTUREADAPTER_H_
17 #define HAZELCAST_CLIENT_INTERNAL_ADAPTER_IMAPDATASTRUCTUREADAPTER_H_
19 #include "hazelcast/client/internal/adapter/DataStructureAdapter.h"
21 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
23 #pragma warning(disable: 4251) //for dll export
33 template <
typename K,
typename V>
46 void set(
const K &key,
const V &value) {
50 boost::shared_ptr<V> put(
const K &key,
const V &value) {
51 return map.putIfAbsent(key, value);
54 boost::shared_ptr<V>
get(
const K &key) {
63 void putAll(
const std::map<K, V> entries) {
67 std::map<K, V> getAll(
const std::set<K> &keys) {
68 return map.getAll(keys);
71 void remove(
const K &key) {
75 bool containsKey(
const K &key)
const {
76 return map.containsKey(key);
79 map::ClientMapProxy<K, V> ↦
86 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Abstracts the Hazelcast data structures with Near Cache support for the Near Cache usage...
Definition: DataStructureAdapter.h:37
Abstracts the Hazelcast data structures with Near Cache support for the Near Cache usage...
Definition: IMapDataStructureAdapter.h:34