GridGain C++
core/include/ignite/cache/cache_peek_mode.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 GridGain Systems, Inc. and Contributors.
3  *
4  * Licensed under the GridGain Community Edition License (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
22 #ifndef _IGNITE_CACHE_CACHE_PEEK_MODE
23 #define _IGNITE_CACHE_CACHE_PEEK_MODE
24 
25 namespace ignite
26 {
27  namespace cache
28  {
33  {
34  enum Type
35  {
39  ALL = 0x01,
40 
45  NEAR_CACHE = 0x02,
46 
51  PRIMARY = 0x04,
52 
57  BACKUP = 0x08,
58 
62  ONHEAP = 0x10,
63 
67  OFFHEAP = 0x20,
68 
72  SWAP = 0x40
73  };
74  };
75  }
76 }
77 
78 #endif //_IGNITE_CACHE_CACHE_PEEK_MODE
ignite
Ignite API.
Definition: cache.h:47
ignite::cache::CachePeekMode::NEAR_CACHE
@ NEAR_CACHE
Peek into near cache only (don't peek into partitioned cache).
Definition: core/include/ignite/cache/cache_peek_mode.h:45
ignite::cache::CachePeekMode::ONHEAP
@ ONHEAP
Peeks value from the on-heap storage only.
Definition: core/include/ignite/cache/cache_peek_mode.h:62
ignite::cache::CachePeekMode::SWAP
@ SWAP
Peeks value from the swap storage only, without loading swapped value into cache.
Definition: core/include/ignite/cache/cache_peek_mode.h:72
ignite::cache::CachePeekMode::OFFHEAP
@ OFFHEAP
Peeks value from the off-heap storage only, without loading off-heap value into cache.
Definition: core/include/ignite/cache/cache_peek_mode.h:67
ignite::cache::CachePeekMode::BACKUP
@ BACKUP
Peek value from backup copies of partitioned cache only (skip near cache).
Definition: core/include/ignite/cache/cache_peek_mode.h:57
ignite::cache::CachePeekMode::Type
Type
Definition: core/include/ignite/cache/cache_peek_mode.h:34
ignite::cache::CachePeekMode::PRIMARY
@ PRIMARY
Peek value from primary copy of partitioned cache only (skip near cache).
Definition: core/include/ignite/cache/cache_peek_mode.h:51
ignite::cache::CachePeekMode
Enumeration of all supported cache peek modes.
Definition: core/include/ignite/cache/cache_peek_mode.h:32
ignite::cache::CachePeekMode::ALL
@ ALL
Peeks into all available cache storages.
Definition: core/include/ignite/cache/cache_peek_mode.h:39