[RI] Fix for out of memory issue in Arduino Mega
[platform/upstream/iotivity.git] / service / resource-encapsulation / src / resourceCache / include / CacheTypes.h
index 815143a..fa08cc8 100644 (file)
@@ -38,7 +38,7 @@ namespace OIC
 
         class DataCache;
 
-#define CACHE_TAG  PCF("CACHE")
+#define CACHE_TAG  "CACHE"
 #define CACHE_DEFAULT_REPORT_MILLITIME 10000
 #define CACHE_DEFAULT_EXPIRED_MILLITIME 15000
 
@@ -67,6 +67,12 @@ namespace OIC
             NONE
         };
 
+        enum class CACHE_MODE
+        {
+            OBSERVE = 0,
+            FREQUENCY
+        };
+
         typedef int CacheID;
 
         typedef std::function<OCStackResult(std::shared_ptr<PrimitiveResource>,