Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
Andre edited this page Aug 20, 2017 · 1 revision

Welcome to the mysql_cache_gmod wiki!

Functions

MysqlCache.RegisterDB(database_id, db_obj)

database_id: A Unique String to ID the DB

db_obj: The Mysqloo Database connected to the MySQL Server

MysqlCache.UpdateDB(database_id, db_obj)

db_obj: The new Mysqloo Database connected to the MySQL Server

database_id: The Unique String of which db you want to update

MysqlCache.RegisterTable(database_id, table_name)

database_id:The Unique String of which db you want to update

table_name: The table name you want to sync

MysqlCache.UnregisterTable(database_id, table_name)

database_id:The Unique String of which db you want to update

table_name: The table name you want to remove

MysqlCache.SetRefreshTime(database_id, refresh_time)

database_id:The Unique String of which db you want to update

refresh_time: The new time you want it to query per db in seconds

MysqlCache.GetTable(database_id, table_name)

database_id:The Unique String of which db you want to update

table_name: The table name you want to grab

Returns:

Everything will return true or false with a message except for the GetTable function. It will return the table if successful.