Hello! I am using `WorkerKV` for some experiment and this is my code ```ts await this.namespace.put

Hello! I am using
WorkerKV
for some experiment and this is my code

await this.namespace.put(keyWithPrefix, JSON.stringify(payload), {
  expiration: Math.floor(payload.resetTime.getTime() / 1000),
});

So here are the problems I am facing -

  1. The key is not getting deleted, I am still getting the old value when I fetch it
  2. If I want to update the value for a key but still want to have the same expiration time, what will be implmentation for that? Should I just pass the
    expiration
    props again?
Was this page helpful?