DATAREDIS-310 - Eagerly serialise key and value in RedisCache.

We now serialise the key and value before trying to acquire the lock to make sure that the given key and value are written in state they were at method invocation time.

Original pull request: #85.