Redis 缓存读取演示

以下内容通过 CacheService.get_or_set() 获取,60 秒内重复访问将直接命中 Redis 缓存:

{'from': 'db_or_compute', 'tip': '本结果已被缓存'}

返回首页