ehcache / ehcache-jcache

The Ehcache 2.x implementation of JSR107 (JCACHE)
Other
91 stars 48 forks source link

Use defaultCache to read default values for 107 unspecified props #32

Open alexsnaps opened 10 years ago

alexsnaps commented 10 years ago

Based on issue #30, we may want to read things like capacity control (and tiering?) from the defaultCache and merge it in with the Configuration provided to javax.cache.CacheManager#createCache.

Ehcache certainly requires a capacity to be set on the Cache, which now defaults to JCacheManager. DEFAULT_SIZE. There may well be other setting we may want to "copy" from there...

Now I find that capacity set this way seems to only address an implementation issue (i.e. Ehcache requiring this setting), but I don't see how one would actually configure this one single value for all programmatically configured javax.cache.Cache to anything meaningful...

Thoughts?

ljacomet commented 10 years ago

I believe this calls for extending the Configuration or even CompleteConfiguration with our own to add support for the Ehcache specific configurations options. Now the questions is: to which extent?