https://github.com/cospectrum/memcrab-py
Memcrab Python Client
https://github.com/cospectrum/memcrab-py
Last synced: 12 months ago
JSON representation
Memcrab Python Client
- Host: GitHub
- URL: https://github.com/cospectrum/memcrab-py
- Owner: cospectrum
- License: apache-2.0
- Created: 2024-03-03T13:49:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-03T19:52:09.000Z (over 2 years ago)
- Last Synced: 2024-03-04T17:55:34.622Z (over 2 years ago)
- Language: Python
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# memcrab-py
Memcrab Python Client
```sh
pip install memcrab
```
## Usage
### Tcp
```py
from memcrab.blocking import RawClient
host = "127.0.0.1"
port = 9900
client = RawClient.tcp((host, port))
client.ping()
client.set("letters", b"ABC")
val = client.get("letters")
print(f"{val=}")
```