Issue 31 — Part 1

Quite some changes, but I think this releases #52 #39 (at least when I'm done with this one here on #31) and #75 for others to work on.
Bunch of tests to be added for #52 #39 and #75 as well... 
That's the contract though. Maybe I should link to the exception javadoc in
CacheLoader class  javadoc
We discussed that in our meetings on this. Again the java doc isn't meant
to be complete at this stage.

On Thursday, October 2, 2014, vfunshteyn <notifications@github.com> wrote:

> In core/src/main/java/org/ehcache/Ehcache.java:
>
> >    }
> >
> >    @Override
> >    public V get(final K key) throws CacheLoaderException {
> > -    final Store.ValueHolder<V> valueHolder;
> > +
> > +    final Function<K, V> mappingFunction = memoize(
> > +        new Function<K, V>() {
> > +          @Override
> > +          public V apply(final K k) {
> > +            V loaded = null;
> > +            try {
> > +              if (cacheLoader != null) {
> > +                loaded = cacheLoader.load(k);
> > +              }
> > +            } catch (RuntimeException e) {
>
> Is this still work in progress? Otherwise, it looks odd to catch an
> unchecked exception, especially since CacheLoader.load(K) doesn't even
> document it is allowed to do this...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ehcache/ehcache3/pull/98/files#r18377259>.
>


-- 
Alex Snaps <alex.snaps@gmail.com>
Principal Software Engineer - Terracotta
http://twitter.com/alexsnaps
http://about.me/alexsnaps
http://www.devoxx4kids.org/quebec/