io.vertx.redis

## Class RedisEncoding

- java.lang.Object
- - io.vertx.redis.RedisEncoding

-     public class RedisEncoding
      extends Object

  This is how Redis escapes char codes: DEC HEX REDIS 07 07 \a 08 08 \b 09 09 \t 10 0a \n 13 0d \r Otherwise: 00-32 00-20 \xXX 32-127 20-7f ASCII char 127-256 7f-ff \xXX
  Author:
    Marko Strukelj

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RedisEncoding()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `decode(String value)` Decode characters in input string from \\xXX syntax.
    `static String` | `encode(String value)` Encode characters in input string using \\xXX syntax.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RedisEncoding

          public RedisEncoding()

  - ### Method Detail

    - #### encode

          public static String encode(String value)

      Encode characters in input string using \\xXX syntax. Only lower byte of every character is used when encoding.
      Parameters:
        `value` - Input string with characters between 0 and 255
      Returns:
        Encoded string that can be pasted into redis-cli shell

    - #### decode

          public static String decode(String value)

      Decode characters in input string from \\xXX syntax. Result can be passed to setBinary(), and restore()
      Parameters:
        `value` - Input string with characters between 0 and 255
      Returns:
        Encoded string that can be pasted into redis-cli shell

Copyright © 2015. All Rights Reserved.