# Class MemoryCalendarCache

java.lang.Object
com.codename1.calendar.MemoryCalendarCache

All Implemented Interfaces:
  `CalendarCache`

public class MemoryCalendarCache extends Object implements CalendarCache
Process-local cache, useful for tests or sessions that must leave no data on disk.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MemoryCalendarCache()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `clear(String sourceId)`
  `Map<String,Object>`
  `load(String sourceId)`
  `void`
  `store(String sourceId, Map<String,Object> state)`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### MemoryCalendarCache

    public MemoryCalendarCache()

- ## Method Details

  - ### load

    public Map<String,Object> load(String sourceId)
    Specified by:
      `load` in interface `CalendarCache`

  - ### store

    public void store(String sourceId, Map<String,Object> state)
    Specified by:
      `store` in interface `CalendarCache`

  - ### clear

    public void clear(String sourceId)
    Specified by:
      `clear` in interface `CalendarCache`