Interface JsonCache.Factory

  • Enclosing interface:
    JsonCache

    public static interface JsonCache.Factory
    A factory for creating JSON cache root instances.
    • Field Detail

    • Method Detail

      • create

        JsonCache.Root create()
        Returns a new cache root instance.
        Returns:
        A new instance.
      • get

        JsonCache.Root get​(String key)
        Returns the singleton cache root instance for the specified key. The same instance is returned every time the method is called with the same key value, being lazily created on the first such call.
        Parameters:
        key - The instance key.
        Returns:
        The singleton instance for key.