Although this post is from a year ago, I faced the same issue today and couldn't find a solution anywhere. My colleague and I were able to resolve it. The fix is to change the ttl parameter from a number to an object:
await this.cacheManager.set(keyRfToken, refreshToken, {ttl: 2000} as any)