public V remove(K key) throws CacheException {
        if (LOGGER.isTraceEnabled()) {
            LOGGER.trace("Removing object from cache [" + cache.getName() + "] for key [" + key + "]");
        }
        try {
            V previous = get(key);
            cache.remove(key);
            return previous;
        } catch (Throwable t) {
            throw new CacheException(t);
        }
    }
Removes the element which matches the key.

<p>If no element matches, nothing is removed and no Exception is thrown.</p>

@param key the key of the element to remove
support/ehcache/src/main/java/org/apache/shiro/cache/ehcache/EhCache.java