Helper class on top of StorageService for detecting message replay.
More...
#include <xmltooling/util/ReplayCache.h>
|
| ReplayCache (StorageService *storage=0) |
| Creates a replay cache on top of a particular StorageService. More...
|
|
virtual bool | check (const char *context, const char *s, time_t expires) |
| Returns true iff the check value is not found in the cache, and stores it. More...
|
|
bool | check (const char *context, const XMLCh *s, time_t expires) |
| Returns true iff the check value is not found in the cache, and stores it. More...
|
|
Helper class on top of StorageService for detecting message replay.
◆ ReplayCache()
◆ check() [1/2]
virtual bool xmltooling::ReplayCache::check |
( |
const char * |
context, |
|
|
const char * |
s, |
|
|
time_t |
expires |
|
) |
| |
|
virtual |
Returns true iff the check value is not found in the cache, and stores it.
- Parameters
-
context | a context label to subdivide the cache |
s | value to check |
expires | time for disposal of value from cache |
◆ check() [2/2]
bool xmltooling::ReplayCache::check |
( |
const char * |
context, |
|
|
const XMLCh * |
s, |
|
|
time_t |
expires |
|
) |
| |
Returns true iff the check value is not found in the cache, and stores it.
- Parameters
-
context | a context label to subdivide the cache |
s | value to check |
expires | time for disposal of value from cache |
The documentation for this class was generated from the following file: