[DOCU-1961] Update - Caching arbitrary objects - for ehcache3 Created: 17/Sep/19  Updated: 29/Oct/19  Resolved: 29/Oct/19

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 5.5, 5.6, 5.7, 6.0, 6.1, 6.2

Type: Task Priority: Neutral
Reporter: Marty Glaubitz Assignee: Richard Gange
Resolution: Done Votes: 0
Labels: cache, caching
Remaining Estimate: 0d
Time Spent: 2h 13m
Original Estimate: Not Specified
Environment:

Windows 10


Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Story Points: 1

 Description   

Today i struggled to create a cache which takes unpersistable Objects, as described in: https://documentation.magnolia-cms.com/display/DOCS60/Caching+arbitrary+objects

However i could not get it to work. Moreover during debugging i could not find the Objects which would take the persistence strategy as described in: https://documentation.magnolia-cms.com/display/DOCS60/Caching+arbitrary+objects#Cachingarbitraryobjects-Configurethecache

Either this feature has silently vanished or the documentation is missing something really important.



 Comments   
Comment by Roman Kovařík [ 17/Sep/19 ]

Hi martyglaubitz,

I haven't checked the docu yet but non persistent cache is used e.g. in https://git.magnolia-cms.com/projects/ENTERPRISE/repos/ldap/browse/magnolia-ldap/src/main/resources/info/magnolia/jaas/sp/ldap/setup/ehcache3/config.modules.cache.config.cacheFactory.delegateFactories.ehcache3.caches.ldap-user-manager-cache.xml (by configuring only the heap resource pool)

Hope that helps.

Roman

 

Comment by Marty Glaubitz [ 17/Sep/19 ]

Ok, so one has to configure his own resource pool then... very well. Still - it should be mentioned in the documentation

Comment by Richard Gange [ 29/Oct/19 ]

Hello martyglaubitz-

I got a chance to double check this today. It looks like we have a section called Configure the cache. So I think that should fill the requirement. The tricky part might be the fact that our example (fooBarCache) extends default. The default configuration sets the resource pool. What I will do is add a note about the extension so it's not overlooked.

Thanks very much for your feedback.

Cheers
Rich

Comment by Richard Gange [ 29/Oct/19 ]

Actually now I see what happened. The docu was never updated for ehcache3. The configuration changed slightly after that. This is why:

Either this feature has silently vanished or the documentation is missing something really important.

Let me repurpose this ticket as we need to expand the scope a bit.

Comment by Richard Gange [ 29/Oct/19 ]

Added a section to Caching arbitrary objects for Ehcache3 configuration which does differ slightly. Not only the subconfigurations of the cache but also the parent node of the caches is different (i.e. caches vs delegateFactories).

Let me also put a note here that all configuration options Ehcache3 can be found here.

Generated at Mon Feb 12 01:22:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.