doc: add information on the schema initialisation ... and an advice for usage as a cheap key-value store.
1 files changed, 9 insertions(+), 0 deletions(-) M README.md
M README.md +9 -0
@@ 6,6 6,12 @@ table. `keys` and `values` are bytes. +To initialize the cache, type: + +```bash +$ dbcache init-db postgresql://foo:bar@postgresql/mydb +``` + Example usage: ```python @@ 27,3 33,6 @@ Example usage: sleep(1) assert cache.get(b'b') is None ``` + +If you merely want a simple key-value store, you can use very long +lifetimes (e.g. `timedelta(days=9999)`).