Apache Geode Native C++ Reference 1.15.0
GeodeCache.hpp
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#pragma once
19
20#ifndef GEODE_GEMFIRECACHE_H_
21#define GEODE_GEMFIRECACHE_H_
22
23#include "RegionService.hpp"
24#include "internal/geode_globals.hpp"
25
26namespace apache {
27namespace geode {
28namespace client {
29
30class SystemProperties;
31
44class APACHE_GEODE_EXPORT GeodeCache : public RegionService {
45 public:
46 ~GeodeCache() override = 0;
47
51 virtual const std::string& getName() const = 0;
52
67 virtual void initializeDeclarativeCache(const std::string& cacheXml) = 0;
68
69 virtual SystemProperties& getSystemProperties() const = 0;
70
74 virtual bool getPdxIgnoreUnreadFields() const = 0;
75
80 virtual bool getPdxReadSerialized() const = 0;
81};
82} // namespace client
83} // namespace geode
84} // namespace apache
85
86#endif // GEODE_GEMFIRECACHE_H_
GeodeCache represents the singleton cache that must be created in order to connect to Geode server.
Definition: GeodeCache.hpp:44
virtual bool getPdxIgnoreUnreadFields() const =0
Returns whether Cache saves unread fields for Pdx types.
virtual const std::string & getName() const =0
Returns the name of this cache.
virtual void initializeDeclarativeCache(const std::string &cacheXml)=0
Initialize the cache by the contents of an xml file.
virtual bool getPdxReadSerialized() const =0
Returns whether PdxInstance is preferred for PDX types instead of C++ object.
A RegionService provides access to existing regions that exist in a Geode cache.
Definition: RegionService.hpp:58
The SystemProperties class.
Definition: SystemProperties.hpp:44

Apache Geode C++ Cache API Documentation