I'm planning to use the Azure redis for session state and caching purpose.
In the past I've used enterprise library and azure dedicated cache which requires [Serializable] attribute for all the objects (complex objects) that needs to be stored.
Can someone please help me understand what are the requirement for object to be stored as session or cache using azure redis?
Also is there any pattern ask Cache to give back given object. e.g. if I ask for employee object the cache should give me that.