org.richfaces.cache.lru

## Class LRUMapCache

- java.lang.Object
- - org.richfaces.cache.lru.LRUMapCache

- All Implemented Interfaces:
    Cache

      public class LRUMapCache
      extends Object
      implements Cache

  Since:
    3.1
  Author:
    Nick - mailto:nbelaevski@exadel.com

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LRUMapCache()`
    `LRUMapCache(int capacity)`

  - ### 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

    - #### LRUMapCache

          public LRUMapCache()

    - #### LRUMapCache

          public LRUMapCache(int capacity)

  - ### Method Detail

    - #### get

          public Object get(Object key)

      Specified by:
        `get` in interface `Cache`

    - #### put

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

      Specified by:
        `put` in interface `Cache`

    - #### start

          public void start()

      Specified by:
        `start` in interface `Cache`

    - #### stop

          public void stop()

      Specified by:
        `stop` in interface `Cache`

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