![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/gitdb/db/__pycache__/ |
� � h � � � d Z ddlmZ ddlmZmZ ddlmZmZ ddl m Z mZ ddlm Z mZ ddlmZ dZ G d � d ee� � ZdS )z*Contains the MemoryDatabase implementation� )� LooseObjectDB)� ObjectDBR� ObjectDBW)�OStream�IStream)� BadObject�UnsupportedOperation)�ZippedStoreShaWriter�DecompressMemMapReader)�BytesIO)�MemoryDBc �R � � e Zd ZdZ� fd�Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Z� xZ S )r a/ A memory database stores everything to memory, providing fast IO and object retrieval. It should be used to buffer results and obtain SHAs before writing it to the actual physical storage, as it allows to query whether object already exists in the target storage before introducing actual IOc � �� t � � � � � t d� � | _ t � � | _ d S )Nzpath/doesnt/matter)�super�__init__r �_db�dict�_cache)�self� __class__s ��]/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/gitdb/db/mem.pyr zMemoryDB.__init__'