Skip to content

Class authenticate_cache

ClassList > authenticate_cache

  • #include <authenticate_cache.hpp>

Public Types

Type Name
typedef std::unordered_map< std::string, AU_USER_CACHE * > user_name_cache_t

Public Attributes

Type Name
int cache_depth = 0
int cache_increment = 4
int cache_index
int cache_max = 0
AU_CLASS_CACHE * class_caches
AU_USER_CACHE * user_cache
user_name_cache_t user_name_cache

Public Functions

Type Name
authenticate_cache ()
AU_USER_CACHE * find_user_cache_by_mop (DB_OBJECT * user)
AU_USER_CACHE * find_user_cache_by_name (const char * name)
void flush (void)
void free_authorization_cache (void * cache)
unsigned int * get_cache_bits (SM_CLASS * sm_class)
int get_cache_index ()
unsigned int * get_procedure_cache_bits (MOP proc_mop)
int get_user_cache_index (AU_USER_CACHE * cache, int * index)
void init (void)
AU_USER_CACHE * make_user_cache (const char * name, DB_OBJECT * user, bool sanity_check)
void print_cache (int cache, FILE * fp)
void remove_user_cache (MOP user)
void reset_authorization_caches (void)
void reset_cache_for_user_and_class (SM_CLASS * sm_class)
void reset_cache_for_user_and_procedure (MOP obj)
void reset_user_cache (void)
void set_cache_index (int idx)
int update (DB_OBJECT_TYPE obj_type, MOP mop, void * ptr)

Public Types Documentation

typedef user_name_cache_t

using authenticate_cache::user_name_cache_t =  std::unordered_map<std::string, AU_USER_CACHE *>;

Public Attributes Documentation

variable cache_depth

int authenticate_cache::cache_depth;

variable cache_increment

int authenticate_cache::cache_increment;

variable cache_index

int authenticate_cache::cache_index;

variable cache_max

int authenticate_cache::cache_max;

variable class_caches

AU_CLASS_CACHE* authenticate_cache::class_caches;

variable user_cache

AU_USER_CACHE* authenticate_cache::user_cache;

variable user_name_cache

user_name_cache_t authenticate_cache::user_name_cache;

Public Functions Documentation

function authenticate_cache

authenticate_cache::authenticate_cache () 

function find_user_cache_by_mop

AU_USER_CACHE * authenticate_cache::find_user_cache_by_mop (
    DB_OBJECT * user
) 

function find_user_cache_by_name

AU_USER_CACHE * authenticate_cache::find_user_cache_by_name (
    const  char * name
) 

function flush

void authenticate_cache::flush (
    void
) 

function free_authorization_cache

void authenticate_cache::free_authorization_cache (
    void * cache
) 

function get_cache_bits

unsigned  int * authenticate_cache::get_cache_bits (
    SM_CLASS * sm_class
) 

function get_cache_index

int authenticate_cache::get_cache_index () 

function get_procedure_cache_bits

unsigned  int * authenticate_cache::get_procedure_cache_bits (
    MOP proc_mop
) 

function get_user_cache_index

int authenticate_cache::get_user_cache_index (
    AU_USER_CACHE * cache,
    int * index
) 

function init

void authenticate_cache::init (
    void
) 

function make_user_cache

AU_USER_CACHE * authenticate_cache::make_user_cache (
    const  char * name,
    DB_OBJECT * user,
    bool sanity_check
) 

function print_cache

void authenticate_cache::print_cache (
    int cache,
    FILE * fp
) 

function remove_user_cache

void authenticate_cache::remove_user_cache (
    MOP user
) 

function reset_authorization_caches

void authenticate_cache::reset_authorization_caches (
    void
) 

function reset_cache_for_user_and_class

void authenticate_cache::reset_cache_for_user_and_class (
    SM_CLASS * sm_class
) 

function reset_cache_for_user_and_procedure

void authenticate_cache::reset_cache_for_user_and_procedure (
    MOP obj
) 

function reset_user_cache

void authenticate_cache::reset_user_cache (
    void
) 

function set_cache_index

void authenticate_cache::set_cache_index (
    int idx
) 

function update

int authenticate_cache::update (
    DB_OBJECT_TYPE obj_type,
    MOP mop,
    void * ptr
) 


The documentation for this class was generated from the following file cubrid/src/object/authenticate_cache.hpp