summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/Cache.h')
-rw-r--r--cpp/src/IceGrid/Cache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/Cache.h b/cpp/src/IceGrid/Cache.h
index 1dee9c8feb7..e3c248d7abb 100644
--- a/cpp/src/IceGrid/Cache.h
+++ b/cpp/src/IceGrid/Cache.h
@@ -35,14 +35,14 @@ public:
{
}
- virtual bool
+ bool
has(const Key& key)
{
Lock sync(*this);
return getImpl(key);
}
- virtual ValuePtr
+ ValuePtr
remove(const Key& key)
{
Lock sync(*this);
@@ -85,7 +85,7 @@ protected:
{
if(create)
{
- return addImpl(key);
+ return createAndAddImpl(key);
}
else
{
@@ -95,7 +95,7 @@ protected:
}
virtual ValuePtr
- addImpl(const Key& key)
+ createAndAddImpl(const Key& key)
{
return addImpl(key, createEntry(key));
}