Issue
We use elasticache-java-cluster-client-1.0.61.0.jar for connecting to Elasticache Memcached client. I noticed that there is restriction in code on max length for key - 250 bytes. Is it possible to overwrite it in both client and Memcached?
Solution
memcached limits the key length to 250 bytes. The only way to change that is by modifying memcached.h and recompiling. Of course you cannot recompile your memcached on ElastiCache.
The common pattern is for you to hash (say with SHA1) your keys. Actually, some memcached clients do this for you by default.
Or consider moving to Amazon ElastiCache for Redis, Redis has a max key size of 512MB.
Answered By - LeoMurillo Answer Checked By - Katrina (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.