# Document Store

## DocumentStore

::: aifastdb.DocumentStore

Enhanced JSONL document store with tag/type indexing, async flush, and file locking.

```python
from aifastdb import DocumentStore

with DocumentStore("./data.jsonl", enable_file_lock=True) as store:
    store.put("doc1", "Hello", doc_type="text", tags=["greeting"])
    doc = store.get("doc1")      # dict or None
    store.has("doc1")             # True
    store.delete("doc1")
    store.find_by_tag("greeting")
    store.find_by_type("text")
    store.all()                   # list[dict]
    store.flush()
    store.compact()
```
