MySQL 8.0.33
Source Code Documentation
reference_cache_common.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 2023, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is also distributed with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have included with MySQL.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License, version 2.0, for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef REFERENCE_CACHE_COMMON_H
24#define REFERENCE_CACHE_COMMON_H
25
26#include <set>
27#include <string>
28
29namespace reference_caching {
30
32#define PSI_category "refcache"
33
34template <class Key = std::string, class Less = std::less<>>
36 : public std::set<Key, Less, Component_malloc_allocator<Key>> {
37 public:
41};
42
43} // namespace reference_caching
44
45#endif /* REFERENCE_CACHE_COMMON_H */
Component_malloc_allocator is a C++ STL memory allocator based on my_malloc/my_free.
Definition: component_malloc_allocator.h:62
Definition: reference_cache_common.h:36
service_names_set()
Definition: reference_cache_common.h:38
unsigned int PSI_memory_key
Instrumented memory key.
Definition: psi_memory_bits.h:48
std::string_view Key
The key type for the hash structure in HashJoinRowBuffer.
Definition: hash_join_buffer.h:107
Definition: cache.cc:28
PSI_memory_key KEY_mem_reference_cache
Definition: component.cc:163
Definition: varlen_sort.h:183
std::set< Key, Compare, ut::allocator< Key > > set
Specialization of set which uses ut_allocator.
Definition: ut0new.h:2880