org.qi4j.cache.ehcache

## Class EhCacheImpl<T>

- java.lang.Object
- - org.qi4j.cache.ehcache.EhCacheImpl<T>

- All Implemented Interfaces:
    Cache<T>

      public class EhCacheImpl<T>
      extends Object
      implements Cache<T>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EhCacheImpl(String cacheId, net.sf.ehcache.Cache cache, Class<T> valueType)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `cacheId()`
    `boolean` | `exists(String key)`
    `T` | `get(String key)`
    `void` | `put(String key, T value)`
    `T` | `remove(String key)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EhCacheImpl

          public EhCacheImpl(String cacheId,
                     net.sf.ehcache.Cache cache,
                     Class<T> valueType)

  - ### Method Detail

    - #### get

          public T get(String key)

      Specified by:
        `get` in interface `Cache<T>`

    - #### remove

          public T remove(String key)

      Specified by:
        `remove` in interface `Cache<T>`

    - #### put

          public void put(String key,
                 T value)

      Specified by:
        `put` in interface `Cache<T>`

    - #### exists

          public boolean exists(String key)

      Specified by:
        `exists` in interface `Cache<T>`

    - #### cacheId

          public String cacheId()