Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: DOCU-1559

...

Warning

Whether cache is persistent depends on the underlying implementation. For non-persistent implementations the cache must be rebuilt after server restart. See Cache implementations for more.

Implementations:

Not persistent 
EhCache with

EhCache 2.0+ with free license

Persistent
EhCache with

EhCache 2.0+ with eh-cache commercial license

EhCache 3.0+ with free license - (warning) Magnolia 5.4.5+

MemCache

Get the cache

Achieve an instance of 

Javadoc
0info.magnolia.module.cache.Cache
.  This is your cache to operate on. Give it a name which must be unique within the system.

...

Advanced Tables - Table Plus
heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
Node nameValue

Mgnl f
modules

 


Mgnl f
cache

 


Mgnl f
config

 


Mgnl n
cacheFactory

 


Mgnl n
caches

 


Mgnl n
default

 


Mgnl n
fooBarCache

 


Mgnl p
extends

../default

Mgnl p
timeToLiveSeconds

300

Mgnl n
persistence

 


Mgnl p
strategy

none

(warning) The /modules/cache/config/cacheFactory/caches/fooBarCache node defines the cache name. fooBarCache is the "name" of the cache which was also used above when acquiring the Cache object within Java code.

Cache Interface

Code Pro
titleinfo.magnolia.module.cache.Cache
sections%%(public interface)%% -
urlhttps://git.magnolia-cms.com/projects/MODULES/repos/cache/browse/magnolia-cache-core/src/main/java/info/magnolia/module/cache/Cache.java?at=master&raw
 

Put to cache

Javadoc
0info.magnolia.module.cache.Cache
 knows two methods to append objects.

...