Drop key_prefix support

Issue #1 resolved
Andriy Kornatskyy
repo owner created an issue

memcached clients have support for key_prefix: prepend key_prefix to each key in *_multi operation before sending keys to memcached server. This feature is redundant.

  1. the application must support keys with prefix and without prefix: for single and multi operation, e.g. in single operation prefix included into key, in multi passed as parameter.
  2. key_encode (this is useful to hash keys that are longer than 250 bytes (memcached limit)), because hash(key_prefix + key) != hash(key_prefix) + hash(key).

Alternative solutions:

  1. separate key_encode function for key_prefix
  2. never apply key_encode to key_prefix

Comments (1)

  1. Log in to comment