#12 redis serialization implementation