max-cache-size

Specifies
the maximum number of beans allowable in cache. A value of zero indicates
an unbounded cache. In reality, there is no hard limit. The max-cache-size
limit is just a hint to the cache implementation. Default is 512.