Function erase

Synopsis

#include <lib/inc/drogon/CacheMap.h>

void erase(const T1 &key)

Description

Erase the value of the keyword.

Parameters:

key - the keyword.

Note
This function does not cause the timeout callback to be executed.

Source

Lines 290-295 in lib/inc/drogon/CacheMap.h.

void erase(const T1 &key)
{
    // in this case,we don't evoke the timeout callback;
    std::lock_guard<std::mutex> lock(mtx_);
    map_.erase(key);
}





Add Discussion as Guest

Log in to DocsForge