Reducing header overuse, non-inlining selected methods (CPPOST-35).
[shibboleth/xmltooling.git] / xmltooling / util / ReplayCache.cpp
index a3c8454..7b53891 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2007 Internet2
+ *  Copyright 2001-2009 Internet2
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@
 
 #include "internal.h"
 #include "util/ReplayCache.h"
+#include "util/StorageService.h"
 
 using namespace xmltooling;
 using namespace std;
@@ -43,6 +44,6 @@ bool ReplayCache::check(const char* context, const char* s, time_t expires)
     // In storage already?
     if (m_storage->readString(context, s))
         return false;
-    m_storage->createText(context, s, "x", expires);
+    m_storage->createString(context, s, "x", expires);
     return true;
 }