Skip to content

Commit 5cefec4

Browse files
author
apinanyogaratnam
committed
docs: added usage
1 parent 38c250e commit 5cefec4

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@ pip install base
2323
## Usage
2424

2525
```python
26-
from base_python_package_template import greetings
26+
from cachier_client import CachierClient
2727

28-
greeting = greetings()
29-
print(greeting)
28+
client = CachierClient("localhost", 8080).connect()
29+
30+
print("should be None:", client.get("greetings"))
31+
client.set("greetings", "Hello, World!", 10)
32+
print("should be something:", client.get("greetings"))
33+
import time
34+
time.sleep(11)
35+
print("should be None:", client.get("greetings"))
3036
```
3137

3238
## Support

0 commit comments

Comments
 (0)