One of the objects that will be wired together for our application will be caching some non-volatile database data. Since this rarely changes instead of having Spring create new objects and do the database reads over and over for every request, it would be great if it would cache the objects and preferrably manage a pool of these objects. Then when a request comes in, an existing object could be reused during the wiring process and returned instead of instantiating a new object.
Does Spring have this capability as part of the IoC functionality? If yes, how is this configured? It would be great if there could be a minimum number of objects in the pool as well as a maximum number.
Thank you for your help.