GridGain C++
thin-client/include/ignite/thin/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_IMPL_THIN_CACHE_CACHE_PEEK_MODE
23 #define _IGNITE_IMPL_THIN_CACHE_CACHE_PEEK_MODE
24 
25 namespace ignite
26 {
27  namespace thin
28  {
29  namespace cache
30  {
35  {
36  enum Type
37  {
41  ALL = 0x01,
42 
47  NEAR_CACHE = 0x02,
48 
53  PRIMARY = 0x04,
54 
59  BACKUP = 0x08,
60 
64  ONHEAP = 0x10,
65 
69  OFFHEAP = 0x20
70  };
71  };
72  }
73  }
74 }
75 
76 #endif //_IGNITE_IMPL_THIN_CACHE_CACHE_PEEK_MODE
ignite
Ignite API.
Definition: cache.h:47
ignite::thin::cache::CachePeekMode::ONHEAP
@ ONHEAP
Peeks value from the on-heap storage only.
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:64
ignite::thin::cache::CachePeekMode
Enumeration of all supported cache peek modes.
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:34
ignite::thin::cache::CachePeekMode::OFFHEAP
@ OFFHEAP
Peeks value from the off-heap storage only, without loading off-heap value into cache.
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:69
ignite::thin::cache::CachePeekMode::Type
Type
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:36
ignite::thin::cache::CachePeekMode::ALL
@ ALL
Peeks into all available cache storages.
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:41
ignite::thin::cache::CachePeekMode::PRIMARY
@ PRIMARY
Peek value from primary copy of partitioned cache only (skip near cache).
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:53
ignite::thin::cache::CachePeekMode::NEAR_CACHE
@ NEAR_CACHE
Peek into near cache only (don't peek into partitioned cache).
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:47
ignite::thin::cache::CachePeekMode::BACKUP
@ BACKUP
Peek value from backup copies of partitioned cache only (skip near cache).
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:59