{"version":3,"file":"passthrough.mjs","names":[],"sources":["../../../../src/libs/kv/adapters/passthrough.ts"],"sourcesContent":["import type { KVAdapterInstance } from \"../types.js\";\n\n/**\n * Passthrough KV adapter implementation.\n *\n * This adapter is a no-op implementation of both KV adapter call shapes.\n * It does not perform any actual key-value operations and returns as if the operation was successful and that there is no cache.\n */\nconst passthroughKVAdapter = (): KVAdapterInstance => ({\n\ttype: \"kv-adapter\",\n\tkey: \"passthrough\",\n\tget: async () => null,\n\tset: async () => {},\n\thas: async () => false,\n\tdelete: async () => {},\n\tgetMany: async (_context, params) => {\n\t\treturn params.keys.map((key) => ({\n\t\t\tkey: typeof key === \"string\" ? key : key.key,\n\t\t\tvalue: null,\n\t\t}));\n\t},\n\tsetMany: async () => {},\n\tdeleteMany: async () => {},\n\tincrement: async () => ({ value: 1 }),\n\tclear: async () => {},\n});\n\nexport default passthroughKVAdapter;\n"],"mappings":"AAQA,MAAM,OAAiD,CACtD,KAAM,aACN,IAAK,cACL,IAAK,SAAY,KACjB,IAAK,SAAY,CAAC,EAClB,IAAK,SAAY,GACjB,OAAQ,SAAY,CAAC,EACrB,QAAS,MAAO,EAAU,IAClB,EAAO,KAAK,IAAK,IAAS,CAChC,IAAK,OAAO,GAAQ,SAAW,EAAM,EAAI,IACzC,MAAO,IACR,EAAE,EAEH,QAAS,SAAY,CAAC,EACtB,WAAY,SAAY,CAAC,EACzB,UAAW,UAAa,CAAE,MAAO,CAAE,GACnC,MAAO,SAAY,CAAC,CACrB"}