class CursorKeyRedisSerializer implements RedisSerializer<RedisCursorKey> {

    @Override
    public RedisCursorKey deserialize(final byte[] bytes) throws SerializationException {
        final String[] values = CODEC.deserialize(bytes);

        if (values == null) {
            return null;
        }

        return new RedisCursorKey(values[0], values[1], values[2]);
    }

}