import{withTimestamp as c}from"../../../utils/time/with-timestamp.js";const p="";function m({key:e,value:n,ttlInSeconds:t}){const o=new Date,r=t?new Date(o.getTime()+t*1e3).toISOString():null,i=u(e);return c({encodedKey:i,value:JSON.stringify(n),expiresAt:r})}function u(e){return e.map(String).join(p)}export{p as KV_KEY_SEPARATOR,m as createKvDbRecord,u as encodeKvKey};
