Move ReplayCache and StorageService APIs to full build only.
[shibboleth/cpp-xmltooling.git] / xmltooling / util / StorageService.h
index abda24a..6dd8d8e 100644 (file)
@@ -20,7 +20,7 @@
  * Generic data storage interface
  */
 
-#ifndef __xmltooling_storage_h__
+#if !defined(__xmltooling_storage_h__) && !defined(XMLTOOLING_LITE)
 #define __xmltooling_storage_h__
 
 #include <xmltooling/XMLObject.h>
@@ -171,6 +171,14 @@ namespace xmltooling {
         virtual void reap(const char* context)=0;
         
         /**
+         * Updates the expiration time of all records in the context.
+         * 
+         * @param context       a storage context label
+         * @param expiration    a new expiration timestamp
+         */
+        virtual void updateContext(const char* context, time_t expiration)=0;
+
+        /**
          * Forcibly removes all records in a given context along with any
          * associated resources devoted to maintaining the context.
          * 
@@ -188,7 +196,7 @@ namespace xmltooling {
     void XMLTOOL_API registerStorageServices();
 
     /** StorageService based on in-memory caching. */
-    #define MEMORY_STORAGE_SERVICE  "org.opensaml.xmlooling.MemoryStorageService"
+    #define MEMORY_STORAGE_SERVICE  "Memory"
 };
 
 #endif /* __xmltooling_storage_h__ */