Class InMemoryRepository


  • public class InMemoryRepository
    extends DfsRepository
    Git repository stored entirely in the local process memory.

    This implementation builds on the DFS repository by storing all reference and object data in the local process. It is not very efficient and exists only for unit testing and small experiments.

    The repository is thread-safe. Memory used is released only when this object is garbage collected. Closing the repository has no impact on its memory.

    • Constructor Detail

      • InMemoryRepository

        public InMemoryRepository​(DfsRepositoryDescription repoDesc)
        Initialize a new in-memory repository.
        Parameters:
        repoDesc - description of the repository.
        Since:
        2.0