用伪代码:
see if redis has the record by 'record_type:record_id'if so return the resultif not then query postgres for the record_id in the record_type tablestore the result in redis by 'record_type:record_id'return the result
这可能必须是您正在使用的查询引擎的自定义适配器。

用伪代码:
see if redis has the record by 'record_type:record_id'if so return the resultif not then query postgres for the record_id in the record_type tablestore the result in redis by 'record_type:record_id'return the result
这可能必须是您正在使用的查询引擎的自定义适配器。