Per Cache Based Max-Size Implementation

Contains:

* max-size policy implementation on core package
* update on spring module for max-size policy implementation
@ahmetmircik Ok, I was thinking as performance perspective to serializing integer is better than string. but your are right that this is fragile for backward compatibility.