KV key size limit?

Just wondering if there is any kind of limit to the length of a string used as a key in KV. I’m thinking of using keys in a project that could be a max of around 5k. I see the docs mention a limit for values but what about keys? Should I hash them or will this be ok?

Keys can be up to 512 bytes (https://developers.cloudflare.com/workers/platform/limits#kv)


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.