I am using the playframework 2 which uses EHcache. Now the api only has Cache.set and Cache.get so I think there is one big cache.
Wouldn’t it be more efficient if there were multiple caches? for examlpe one cache for ip addresses, one cache for usernames etc.
Could you give me some pros / cons?
The purpose of the Cache object in Play is to have a generic cache system.
You can specialize caches by extending the actual cache and using specific prefix: