Package net.spy.memcached
Class KeyUtil
java.lang.Object
net.spy.memcached.KeyUtil
Utilities for processing key values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]Get the bytes for a key.static Collection<byte[]> getKeyBytes(Collection<String> keys) Get the keys in byte form for all of the string keys.
-
Method Details
-
getKeyBytes
Get the bytes for a key.- Parameters:
k- the key- Returns:
- the bytes
-
getKeyBytes
Get the keys in byte form for all of the string keys.- Parameters:
keys- a collection of keys- Returns:
- return a collection of the byte representations of keys
-