Commit 01834726 authored by tufengqi's avatar tufengqi

redis table配置修改

parent 535e524a
......@@ -4,5 +4,5 @@ namespace fpf\cache;
interface BaseIntf
{
public function getTableKey($table, $key);
public function getTableKey($prefix_tag, $table, $key);
}
\ No newline at end of file
<?php
namespace fpf\cache;
/**
* 简单的KEY VALUE形式的构造真实KEY的方法
*/
class DefaultBaseImpl
{
public static function getTableKey($table_name, $key)
public static function getTableKey($prefix_tag, $table_name, $key)
{
return TableConstant::$table_name . $key;
return $prefix_tag . TableConstant::$table_name . $key;
}
}
......@@ -10,6 +10,7 @@ class TableConstant
const HASH_BTC = 'BTC';
const HASH_USDT = 'USDT';
const SIMPLE_USD_CNY_RATE = 'USD_CNY_RATE';
const MARKET_SERVICE_TABLE_PREFIX = 'market-service:';
public static $hash_table = [
TableConstant::HASH_BTC => true,
TableConstant::HASH_USDT => 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