Foren
Using MemCached in liferay Portal
Mahdi Tilab, geändert vor 13 Jahren.
Using MemCached in liferay Portal
New Member Beiträge: 12 Beitrittsdatum: 02.03.08 Neueste Beiträge
Hi Friends,
I want to use Memcached Mechanism. I see memcached-spring.xml and com.liferay.portal.cache.memcached.MemcachePortalCacheManager class for this. I am not found any wiki page for this feature.
can any one tell me more about this?
Does full support of this feature in liferay or have problem?
How to Integrate MemCache server with mysql database?
Regards
Mehdi Tilab
I want to use Memcached Mechanism. I see memcached-spring.xml and com.liferay.portal.cache.memcached.MemcachePortalCacheManager class for this. I am not found any wiki page for this feature.
can any one tell me more about this?
Does full support of this feature in liferay or have problem?
How to Integrate MemCache server with mysql database?
Regards
Mehdi Tilab
Hitoshi Ozawa, geändert vor 12 Jahren.
RE: Using MemCached in liferay Portal
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Liferay currently uses ehcache. It seems MemCache is still just experiment.As you said, there's no document yet. Just have to do it yourself by looking at the source code.
Fabíola Souza Pereira, geändert vor 11 Jahren.
RE: Using MemCached in liferay Portal
New Member Beiträge: 8 Beitrittsdatum: 14.03.08 Neueste Beiträge
Any news / documentation about this issue? I really want to use Memcached in Liferay, but no docs found...
Thanks!
Thanks!
Hitoshi Ozawa, geändert vor 11 Jahren.
RE: Using MemCached in liferay Portal
Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste BeiträgeAny news / documentation about this issue? I really want to use Memcached in Liferay, but no docs found...
Sorry, I haven't seen any information on the subject. You'll just have to look at liferay source code.
Michael C. Han, geändert vor 11 Jahren.
RE: Using MemCached in liferay Portal
Junior Member Beiträge: 74 Beitrittsdatum: 13.06.07 Neueste Beiträge
Actually, you really don't want to use Memcache with Liferay. I understand there's a lot of interest in memcache due to the hype surrounding it. However, memcache isn't suitable for all types of systems.
Unlike ehcache, memcache is not partitioned. So you don't have a separate cache per entity within Liferay. Liferay has over 300 entities that get cached. If you want to use memcache, you would need to create a dedicated memcache cluster for each of the 300 entities. That's a lot of overhead. You would be better off using the out of box ehcache + Terracotta as a distributed cache store.
Where memcache would be appropriate is to serve as a cache for specific objects. For instance, you want to use memcache as an EntityCache for Liferay User objects. The suggested way is to implement an adapter into Ehcache which would allow you to back the cache via memcache.
Unlike ehcache, memcache is not partitioned. So you don't have a separate cache per entity within Liferay. Liferay has over 300 entities that get cached. If you want to use memcache, you would need to create a dedicated memcache cluster for each of the 300 entities. That's a lot of overhead. You would be better off using the out of box ehcache + Terracotta as a distributed cache store.
Where memcache would be appropriate is to serve as a cache for specific objects. For instance, you want to use memcache as an EntityCache for Liferay User objects. The suggested way is to implement an adapter into Ehcache which would allow you to back the cache via memcache.
Vinay J, geändert vor 7 Jahren.
RE: Using MemCached in liferay Portal
New Member Beiträge: 9 Beitrittsdatum: 23.11.16 Neueste Beiträge
Hi I am working on Liferay application having plain documents, images, journals in it. I want to implement caching mechanism using memcached.
Any pointers or help will be much appreciated.
Any pointers or help will be much appreciated.