ok
Direktori : /opt/cloudlinux/venv/lib64/python3.11/site-packages/gitdb/db/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/gitdb/db/__pycache__/mem.cpython-311.pyc |
� �܋f � � � 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.6/venv/lib/python3.11/site-packages/gitdb/db/mem.pyr zMemoryDB.__init__'