I'm storing a few properties(KV pairs) in a hierarchical db(JCR
). As part of business logic, i have to lookup these key-value pairs very frequently and each time i have to call a method which goes and retrieves the persisted value.
I'm working on a CMS
called AEM
and all these key-value pairs are authored using a component and stored as JCR
properties. Presently i've written an OSGi
service which will go to that node and retrieve the value corresponding to the key and this method gets invoked several several times. Instead of making repeated calls to the service method to retrieve these values, can you suggest an efficient way to do this?
Aucun commentaire:
Enregistrer un commentaire