Serialize data when necessary as Redis only accepts strings. Also, properly store non-expiring values.