extensions/memory/src/main/java/uk/co/tfd/sm/memory/ehcache/CacheImpl.java
@SuppressWarnings("unchecked")
  public V put(String key, V payload) {
    V previous = null;
    if (cache.isKeyInCache(key)) {
      Element e = cache.get(key);
      if (e != null) {
        previous = (V) e.getObjectValue();
      }
    }
    cache.put(new Element(key, payload));
    return previous;
  }
@SuppressWarnings("unchecked")
  public V put(String key, V payload) {
    V previous = null;
    if (cache.isKeyInCache(key)) {
      Element e = cache.get(key);
      if (e != null) {
        previous = (V) e.getObjectValue();
      }
    }
    cache.put(new Element(key, payload));
    return previous;
  }
@ SuppressWarnings ( "unchecked" ) public V put ( String key , V payload ) { V previous = null ; if ( cache . isKeyInCache ( key ) ) { Element e = cache . get ( key ) ; if ( e != null ) { previous = ( V ) e . getObjectValue ( ) ; } } cache . put ( new Element ( key , payload ) ) ; return previous ; }
{@inherit-doc}

@see org.sakaiproject.nakamura.api.memory.Cache#put(java.lang.String, java.lang.Object)
{ @inherit - doc }