Added request am29544 (nvault_touch)

This commit is contained in:
David Anderson
2006-08-20 21:23:38 +00:00
parent ea262171db
commit deefc504e1
6 changed files with 72 additions and 13 deletions

View File

@@ -109,6 +109,11 @@ public:
stamp = pNode->stamp;
return pNode->val;
}
void Touch(const K & k, time_t stamp)
{
THashNode *pNode = _FindOrInsert(k);
pNode->stamp = stamp;
}
V & Retrieve(const K & k)
{
time_t stamp;