Package org.apache.storm.trident.state.map

# Class CachedMap<T>

java.lang.Object
org.apache.storm.trident.state.map.CachedMap<T>

All Implemented Interfaces:
  `IBackingMap<T>`

public class CachedMap<T> extends Object implements IBackingMap<T>
Useful to layer over a map that communicates with a database. you generally layer opaque map over this over your database store.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CachedMap(IBackingMap<T> delegate, int cacheSize)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<T>`
  `multiGet(List<List<Object>> keys)`
  `void`
  `multiPut(List<List<Object>> keys, List<T> values)`

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

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

- ## Constructor Details

  - ### CachedMap

    public CachedMap(IBackingMap<T> delegate, int cacheSize)

- ## Method Details

  - ### multiGet

    public List<T> multiGet(List<List<Object>> keys)
    Specified by:
      `multiGet` in interface `IBackingMap<T>`

  - ### multiPut

    public void multiPut(List<List<Object>> keys, List<T> values)
    Specified by:
      `multiPut` in interface `IBackingMap<T>`