updates to docs

This commit is contained in:
Simone Scarduzio
2025-11-11 17:05:50 +01:00
parent 7a4d30a007
commit 284f030fae
4 changed files with 110 additions and 208 deletions

View File

@@ -206,10 +206,17 @@ from deltaglider import create_client
client = create_client(
endpoint_url="http://minio.internal:9000", # Custom S3 endpoint
log_level="DEBUG", # Detailed logging
cache_dir="/var/cache/deltaglider", # Custom cache location
aws_access_key_id="minio",
aws_secret_access_key="minio",
region_name="eu-west-1",
max_ratio=0.3, # Stricter delta acceptance
)
```
> The SDK now manages an encrypted, process-isolated cache automatically in `/tmp/deltaglider-*`.
> Tune cache behavior via environment variables such as `DG_CACHE_BACKEND`,
> `DG_CACHE_MEMORY_SIZE_MB`, and `DG_CACHE_ENCRYPTION_KEY` instead of passing a `cache_dir` argument.
## Real-World Example
```python
@@ -299,4 +306,4 @@ url = client.generate_presigned_url(
## License
MIT License - See [LICENSE](https://github.com/beshu-tech/deltaglider/blob/main/LICENSE) for details.
MIT License - See [LICENSE](https://github.com/beshu-tech/deltaglider/blob/main/LICENSE) for details.