python 下的 flask django 使用中间件 cache ,可以方便地使用 redis 缓存。 gin 下不知道有没有类似的用法。 没有的话,只能 json 序列化,从 redis 里面取了