Super confused!

I'm trying to implement an object cache, an LRU cache with a TTL on its elements. My problem is that I'm confused with the definition of an LRUCache, can LRUCaches hold objects of different types?

Namely, how would I put different types of objects into this Cache?

EDIT: What I mean to say is that I'm looking to put objects of different types into the same memory class, for example A cache that can hold objects of type A and B, where A and B are uniquely defined objects.

Best Regards, Christopher Steven

Related posts

Recent Viewed