MCPcopy Create free account
hub / github.com/apache/arrow / RemoveCacheEntriesForToken

Method RemoveCacheEntriesForToken

cpp/src/parquet/encryption/key_toolkit.cc:111–115  ·  view source on GitHub ↗

Flush any caches that are tied to the (compromised) access_token

Source from the content-addressed store, hash-verified

109
110// Flush any caches that are tied to the (compromised) access_token
111void KeyToolkit::RemoveCacheEntriesForToken(const std::string& access_token) {
112 kms_client_cache_per_token().Remove(access_token);
113 kek_write_cache_per_token().Remove(access_token);
114 kek_read_cache_per_token().Remove(access_token);
115}
116
117void KeyToolkit::RemoveCacheEntriesForAllTokens() {
118 kms_client_cache_per_token().Clear();

Callers 1

Calls 1

RemoveMethod · 0.80

Tested by

no test coverage detected