You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Libmemcached support memcached_get_by_key and memcached_set_by_key. These can be useful for implementing some specific caching and usage strategies with memcached.
It would be awesome if pylibmc supported these.
The text was updated successfully, but these errors were encountered:
Extend all functions to take an optional argument, hash_key that indicates what value should be used to choose the server to speak to.
set(key, value, hash_key=k)
3. Subclass or lambda
Say an API like:
mc_k = mc.with_hash_key(hkey)
mc_k.set(key, value) // set using hkey as the hashing key
mc.set(key, value) // set using default hashing, (i.e., key as the hash key)
This is nice since it composes well, doesn't complicate the API much.
Libmemcached support
memcached_get_by_key
andmemcached_set_by_key
. These can be useful for implementing some specific caching and usage strategies with memcached.It would be awesome if pylibmc supported these.
The text was updated successfully, but these errors were encountered: