MySQL 8.0.39
Source Code Documentation
keycaches.h File Reference
#include <string_view>
#include "keycache.h"
#include "lex_string.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "mysql/service_mysql_alloc.h"
#include "sql/sql_list.h"
#include "sql/thr_malloc.h"

Go to the source code of this file.

Classes

class  NAMED_ILINK
 ilink (intrusive list element) with a name More...
 
class  NAMED_ILIST
 

Typedefs

typedef int(* process_key_cache_t) (std::string_view, KEY_CACHE *)
 

Functions

KEY_CACHEcreate_key_cache (std::string_view name)
 Create a MyISAM Multiple Key Cache. More...
 
KEY_CACHEget_key_cache (std::string_view cache_name)
 Resolve a MyISAM Multiple Key Cache by name. More...
 
KEY_CACHEget_or_create_key_cache (std::string_view name)
 Resolve an existent MyISAM Multiple Key Cache by name, otherwise create a new one. More...
 
bool process_key_caches (process_key_cache_t func)
 

Variables

const LEX_CSTRING default_key_cache_base
 
KEY_CACHE zero_key_cache
 @nonexistent_cache.param->value_ptr() points here More...
 
NAMED_ILIST key_caches
 

Typedef Documentation

◆ process_key_cache_t

typedef int(* process_key_cache_t) (std::string_view, KEY_CACHE *)

Function Documentation

◆ create_key_cache()

KEY_CACHE * create_key_cache ( std::string_view  name)

Create a MyISAM Multiple Key Cache.

Parameters
nameCache name (case insensitive, system character set).

◆ get_key_cache()

KEY_CACHE * get_key_cache ( std::string_view  cache_name)

Resolve a MyISAM Multiple Key Cache by name.

Parameters
cache_nameCache name (case insensitive, system character set).
Returns
New key cache on success, otherwise nullptr.

◆ get_or_create_key_cache()

KEY_CACHE * get_or_create_key_cache ( std::string_view  name)

Resolve an existent MyISAM Multiple Key Cache by name, otherwise create a new one.

Parameters
nameCache name (case insensitive, system character set)
Returns
Key cache on success, otherwise nullptr.

◆ process_key_caches()

bool process_key_caches ( process_key_cache_t  func)

Variable Documentation

◆ default_key_cache_base

const LEX_CSTRING default_key_cache_base
extern

◆ key_caches

NAMED_ILIST key_caches
extern

◆ zero_key_cache

KEY_CACHE zero_key_cache
extern

@nonexistent_cache.param->value_ptr() points here