Python bindings for the foyer Rust hybrid cache library.
Project description
foyer-py
Python bindings for the Rust foyer hybrid cache library.
foyer-py is published on PyPI and imported as foyer.
Current status
- Sync in-memory cache bindings are available.
- Keys:
bytes,str,int. - Values:
bytes.
Quick start
import foyer
cache = foyer.MemoryCache(16)
cache.insert("hello", b"world")
assert cache.get("hello") == b"world"
assert cache.contains("hello")
assert cache.entries == 1
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
foyer_py-0.0.2.tar.gz
(13.3 kB
view details)
File details
Details for the file foyer_py-0.0.2.tar.gz.
File metadata
- Download URL: foyer_py-0.0.2.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc1c0f03405b1cc3124bb7ba43de5eec2bddd315bc9f29e2c7138fdecff0703
|
|
| MD5 |
55397095a5bbbc191cb8ca1e5f9b2a93
|
|
| BLAKE2b-256 |
cb628e5ae715543bceac9c21e5aa381ea0b387478540ad77d3ef12073321461f
|