Best Approach to Not String Keys (Cache)

Topics: Caching Application Block , General discussion
Sep 11, 2007 at 4:24 PM
Hi, i need implement caching of different bussines objects, but the access key for this objects is other object not a string...

What is in your experience the best approach, i think in this options.

Make the ToString method of key objects be different from different bussiness clases, maybe including the whole class name and his hashcode in the ToString()

Use different cache instances(is this possible?), one for each bussines class and use the ToString method as key...

Others ?

Thanks for you time!

Enrique Ferreyra