Singleton memory cache for Repository manager ..?
Hi!
SCENARIO:
SAP EP 60 SP 2 Patch 34
A repository manager (RM) using the UME for accessing users
The RM method "IResourceHandle lookup(IRid rid)" using a memory Cache
A search component using the RM to access users
About 20.000 users in the UME and "many" connections using the search
Cache is configured as "Singleton = True"
Simple searching from one connection (test environment) and looking at the cache monitor shows it works fine
Regarding the Singleton configuration: I don't quite understand the help.sap.com explanation:
"
Singleton
Instantiation type of cache.
If singleton is activated, the memory is only reserved once for the cache. All components that use the cache can also use the objects in the cache.
If a cache is a singleton, this memory is reserved especially for each component that uses it. The components cannot then access the objects of another component that are contained in the cache.
"
QUESTION:
Should the cache be configured as "Singleton = True" ?
Do I take a risk by implementing this in production environment?
Is there a safe way ? 😊
Grateful for any idea!
//Peter