WURFL API Cache Provider

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

WURFL API Cache Provider

Postby sm_support2 » Fri Jun 24, 2011 12:14 pm

What's the default cache provider for the Java API?

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: WURFL API Cache Provider

Postby sm_support2 » Fri Jun 24, 2011 12:16 pm

The default Cache provider is LRUMapCacheProvider.
It is synchronized upon a LRUMap (http://commons.apache.org/collections/a ... RUMap.html), so not particularly fast for multithreaded projects.
HashMapCacheProvider has no eviction strategy.

For optimal tuning and performance, EhCache is probably the best choice, assuming correct configuration.


Who is online

Users browsing this forum: No registered users and 9 guests