Add serialized capacity to Cache_Redis for objects

Updated with Tcholakov's suggestion.
Verified on Both Mac and Ubuntu environments and run correctly with my database result.
Sorry, it was written by me at the beginning, when I was thinking the return value should be NULL...