1.优化getPlayerInfo接口
This commit is contained in:
@@ -34,4 +34,7 @@ return [
|
||||
// 玩家信息按 username 缓存(Token 中间件用),0 表示不缓存
|
||||
'player_cache_ttl' => (int) env('API_PLAYER_CACHE_TTL', 300),
|
||||
'player_cache_prefix' => env('API_PLAYER_CACHE_PREFIX', 'api:player:'),
|
||||
// /api/v1/getPlayerInfo 返回体快照(Redis),0 表示不缓存;变更玩家数据时需 deletePlayerByUsername 失效
|
||||
'player_info_snapshot_ttl' => (int) env('API_PLAYER_INFO_SNAPSHOT_TTL', 180),
|
||||
'player_info_snapshot_prefix' => env('API_PLAYER_INFO_SNAPSHOT_PREFIX', 'api:v1:player_info:'),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user