Cache group specific config

View: New views
1 Messages — Rating Filter:   Alert me  

Cache group specific config

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'd like to have different config for different groups but can't find an example on the oscache website or in the sample oscache properties files

Lets say I have 2 cache groupsĀ 
  • users
  • funds
And I want to configure some properties differently (eg algorithm)


I was hoping that I could do something similar to:
-----------------------------------------
# default
cache.algorithm=com.opensymphony.oscache.base.algorithm.LRUCache

# users group config
users.cache.algorithm=com.opensymphony.oscache.base.algorithm.FIFOCache

# content cache
funds.cache.algorithm=com.opensymphony.oscache.base.algorithm.UnlimitedCache
-----------------------------------------

Is there a simple way I can configure properties specific to a cache group?

Thanks,
Lance.