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 and Description
    `CachedMap(IBackingMap<T> delegate, int cacheSize)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### CachedMap

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

  - ### Method Detail

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

Copyright © 2021 The Apache Software Foundation. All rights reserved.