#32 Add programatic API for cache capacity control
#32 add xml configuration for cache capacity constraints