I am trying to implement berkeley db as a cache in an application and noticed that the while using StoredSortedMap, i get a different reference to the stored objects on every get. Does berkeley db return separate references for the same key on each get call ?
Is there a way that i can use to retain the reference or is it something that the application has to implement ?