Given a simple serialisable object:
[ProtoContract]
public class Post
{
[ProtoMember(19500)]
public int ID { get; protected set; }
[ProtoMember(19501)]
public int ForumID { get; protected set; }
public Post()
{
}
}
Is it possible with reflection to get a list of all the fields and proto member IDs for this object with reflection?
The goal at the moment is to avoid evicting these objects from the Redis cache if their structures have not changed, as supposed to clearing the entire cache which causes some moderate but short lived performance issues on the new deployment (we deploy regularly).
Aucun commentaire:
Enregistrer un commentaire