From 48e7aadcf3c2e5da65775b8a7b39981f1f7b03f9 Mon Sep 17 00:00:00 2001 From: Adaline Simonian Date: Mon, 12 Feb 2024 13:27:23 -0800 Subject: [PATCH] fix: serialize cache objects with correct fields --- src/providers/memcached-cache.provider.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/providers/memcached-cache.provider.ts b/src/providers/memcached-cache.provider.ts index bfaaeeb2..0bfe6525 100644 --- a/src/providers/memcached-cache.provider.ts +++ b/src/providers/memcached-cache.provider.ts @@ -144,9 +144,11 @@ export class MemcachedCacheProvider implements ICacheProvider { ); try { - const serialized = await this.cacheSerializationProvider.serialize( - await value, // value may be a promise - ); + const serialized = await this.cacheSerializationProvider.serialize({ + data: await value, // value may be a promise + setAt: now, + bucket, + }); await this.memcachedProvider.client?.set(key, serialized, { expires: ttlSeconds.min, });