Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mayur Patel
Caching of Property file
September 15, 2011 2:26 AM
Answer

Mayur Patel

Rank: Expert

Posts: 350

Join Date: November 17, 2010

Recent Posts

Hello All,

I want to store all the values of property file for that portlet in cache and for displaying values I wanted to get it from cache , I want to create our own cache for our portlet. Liferay is providing caching for many portlets like journal and others but we need to create our own cache.

Please give me an idea to achieve this.

Any help would be appreciated.

Thanks,
Mayur Patel
Samir Gami
RE: Caching of Property file
September 14, 2011 11:33 PM
Answer

Samir Gami

Rank: Regular Member

Posts: 162

Join Date: February 3, 2011

Recent Posts

If your property file is external, you can use "java.util.Properties", to do so...
For property file that reside within portal, liferay have its own utils to fetch its value.