cache.attach("/foo1", object); cache.attach("/foo2", object);
Thanks for your reply! Is there anything about the key that tells POJOCache this is the same object? Is it the '/' forward slash or does POJOCache just know its the same object and so does not save the same object again?
POJO Cache adds information to instrumented objects that allows it to determine if it has already been stored. On attach, if the object already exists, just a reference is created.