org.richfaces.cache

## Class EhCacheCache

- java.lang.Object
- - org.richfaces.cache.EhCacheCache

- All Implemented Interfaces:
    org.richfaces.cache.Cache

      public class EhCacheCache
      extends Object
      implements org.richfaces.cache.Cache

  Since:
    4.0
  Author:
    Nick Belaevski

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EhCacheCache(net.sf.ehcache.Ehcache cache, boolean preconfiguredCache)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `get(Object key)`
    `void` | `put(Object key, Object value, Date expired)`
    `void` | `start()`
    `void` | `stop()`

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

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

- - ### Constructor Detail

    - #### EhCacheCache

          public EhCacheCache(net.sf.ehcache.Ehcache cache,
                      boolean preconfiguredCache)

  - ### Method Detail

    - #### start

          public void start()

      Specified by:
        `start` in interface `org.richfaces.cache.Cache`

    - #### stop

          public void stop()

      Specified by:
        `stop` in interface `org.richfaces.cache.Cache`

    - #### get

          public Object get(Object key)

      Specified by:
        `get` in interface `org.richfaces.cache.Cache`

    - #### put

          public void put(Object key,
                 Object value,
                 Date expired)

      Specified by:
        `put` in interface `org.richfaces.cache.Cache`

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.