MySQL 8.0.40
Source Code Documentation
reference_cache_common.h
Go to the documentation of this file.
1/* Copyright (c) 2020, 2024, 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 designed to work 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 either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef REFERENCE_CACHE_COMMON_H
25#define REFERENCE_CACHE_COMMON_H
26
27#include <set>
28#include <string>
29
30namespace reference_caching {
31
33#define PSI_category "refcache"
34
35template <class Key = std::string, class Less = std::less<>>
37 : public std::set<Key, Less, Component_malloc_allocator<Key>> {
38 public:
42};
43
44} // namespace reference_caching
45
46#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:63
Definition: reference_cache_common.h:37
service_names_set()
Definition: reference_cache_common.h:39
unsigned int PSI_memory_key
Instrumented memory key.
Definition: psi_memory_bits.h:49
std::string_view Key
The key type for the hash structure in HashJoinRowBuffer.
Definition: hash_join_buffer.h:102
Definition: cache.cc:29
PSI_memory_key KEY_mem_reference_cache
Definition: component.cc:164
Definition: gcs_xcom_synode.h:64
std::set< Key, Compare, ut::allocator< Key > > set
Specialization of set which uses ut_allocator.
Definition: ut0new.h:2883