670
670
virtual uint8_t table_cache_type() { return HA_CACHE_TBL_NONTRANSACT; }
674
@brief Register a named table with a call back function to the query cache.
676
@param session The thread handle
677
@param table_key A pointer to the table name in the table cache
678
@param key_length The length of the table name
679
@param[out] engine_callback The pointer to the storage engine call back
681
@param[out] engine_data Storage engine specific data which could be
684
This method offers the storage engine, the possibility to store a reference
685
to a table name which is going to be used with query cache.
686
The method is called each time a statement is written to the cache and can
687
be used to verify if a specific statement is cachable. It also offers
688
the possibility to register a generic (but static) call back function which
689
is called each time a statement is matched against the query cache.
691
@note If engine_data supplied with this function is different from
692
engine_data supplied with the callback function, and the callback returns
693
false, a table invalidation on the current table will occur.
695
@return Upon success the engine_callback will point to the storage engine
696
call back function, if any, and engine_data will point to any storage
697
engine data used in the specific implementation.
699
@retval false The specified table or current statement should not be
704
register_query_cache_table(Session *, char *, uint32_t,
705
qc_engine_callback *engine_callback,
714
674
@retval true Primary key (if there is one) is clustered
715
675
key covering all fields