memcachier / memjs

A memcache client for node using the binary protocol and SASL authentication
MIT License
197 stars 52 forks source link

Pluggable HashRing and TypeScript definitions #174

Open tarwin opened 1 year ago

tarwin commented 1 year ago

feat: Added pluggable HashRing functions feat: Added TypeScript definitions chore: Updated readme

saschat commented 1 year ago

Thanks for your PR.

For now, implementing your hash function to select a server can be done by overriding the getServer method as specified in #159. This has the added benefit of respecting all the failover code that your PR circumvents. Does that work for you?