Class KeyUtil

java.lang.Object
net.spy.memcached.KeyUtil

public final class KeyUtil extends Object
Utilities for processing key values.
  • Constructor Details

    • KeyUtil

      private KeyUtil()
  • Method Details

    • getKeyBytes

      public static byte[] getKeyBytes(String k)
      Get the bytes for a key.
      Parameters:
      k - the key
      Returns:
      the bytes
    • getKeyBytes

      public static Collection<byte[]> getKeyBytes(Collection<String> keys)
      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