diff --git a/.gitignore b/.gitignore index cf02508ab..7b995a4d8 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ dump.rdb* cache artifacts dist + +# Debugging files +*.log diff --git a/src/caching/RedisCache.ts b/src/caching/RedisCache.ts index 5fc413952..ea9341eaa 100644 --- a/src/caching/RedisCache.ts +++ b/src/caching/RedisCache.ts @@ -30,7 +30,7 @@ export class RedisCache implements interfaces.CachingMechanismInterface { public async set(key: string, value: T, ttl: number = constants.DEFAULT_CACHING_TTL): Promise { // Call the setRedisKey function to set the value in redis. - await setRedisKey(key, JSON.stringify(value), this.redisClient, ttl); + await setRedisKey(key, String(value), this.redisClient, ttl); // Return key to indicate that the value was set successfully. return key; }