summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 25737d2..6b9b07a 100644
--- a/README.md
+++ b/README.md
@@ -35,6 +35,14 @@ stash = YmlStash(User, "path/to/db")
stash.save(user)
```
+This will create a `yuval.yml` file in the stash root directory.
+
+When saving to file, a `key` field must be present on the dataclass, otherwise an explicit `key` must be passed:
+
+```python
+stash.save(obj, key="custom-key")
+```
+
Load from file:
```python