Commit 535e524a authored by tufengqi's avatar tufengqi

修改redis table配置

parent 6837c4ce
......@@ -5,9 +5,6 @@ class DefaultBaseImpl
{
public static function getTableKey($table_name, $key)
{
if (!property_exists(TableConstant::class, $table_name)) {
throw new Exception('table name is not found');
}
return TableConstant::$table_name . $key;
}
}
......@@ -6,7 +6,15 @@ namespace fpf\cache;
*/
class TableConstant
{
const HASH_BTC = 'HASH_BTC';
const HASH_USDT = 'HASH_USDT';
const SIMPLE_USD_CNY_RATE = 'SIMPLE_USD_CNY_RATE';
const CONNECTOR_TAG = '_';
const HASH_BTC = 'BTC';
const HASH_USDT = 'USDT';
const SIMPLE_USD_CNY_RATE = 'USD_CNY_RATE';
public static $hash_table = [
TableConstant::HASH_BTC => true,
TableConstant::HASH_USDT => true,
];
public static $simple_table = [
TableConstant::SIMPLE_USD_CNY_RATE => true,
];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment