Redis key User Defined object vs String

Viewed 1038

I want to store , prefix with UUID in redis as key.But it should occupy less memory. Which is the better way . Below are the different ways :

1) new object(prefix,uuid)

2) concat(prefix+uuid).

3) convert object to protobuff and storing it as keyr

3 Answers
Related