aliexpressru / memcached

A high-performance client library for managing multiple instances of Memcached, optimized for scalability and reliability. This library is designed to provide seamless integration and efficient caching solutions for large-scale applications, ensuring low latency and high throughput. Developed and maintained by AliExpress CIS.
https://www.nuget.org/packages/Aerx.Memcached.Client
MIT License
27 stars 1 forks source link

Added support to storing the keys longer than 250 bytes #33

Closed TonySkorik closed 9 months ago

TonySkorik commented 9 months ago

Memcached has a by-design limitation for keys to - they should be no longer than 250 bytes.

This PR lifts this limitation by first checking the key length and, if exceeds the limit, hashing the key using xxHash128 to a fixed length string.