In Memcached, the maximum value size for a single item is 1 MB (1024 KB or 1048576 bytes) by default. This limit is imposed to ensure efficient memory management and performance, as Memcached is designed for small, fast-access key-value storage rather than large data blobs.
If you need to store larger items, you have a few options:
For example, if you have a 2 MB file, you could split it into two 1 MB chunks and store them with keys like file_123_part1 and file_123_part2.
Tencent Cloud offers Tencent Cloud Memcached, a fully managed service that adheres to this limit, ensuring high performance for caching scenarios. For larger data needs, consider Tencent Cloud COS for object storage.