django-vcache 3.2.0__tar.gz → 3.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_vcache-3.2.0 → django_vcache-3.3.0}/Cargo.lock +3 -3
- {django_vcache-3.2.0 → django_vcache-3.3.0}/Cargo.toml +1 -1
- {django_vcache-3.2.0 → django_vcache-3.3.0}/PKG-INFO +2 -1
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/src/connection.rs +12 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-pyo3/src/client.rs +26 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/django_vcache/backend.py +4 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/pyproject.toml +2 -1
- {django_vcache-3.2.0 → django_vcache-3.3.0}/LICENSE +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/README.md +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/Cargo.toml +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/examples/bench.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/examples/kill_retry.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/examples/standalone.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/src/credential.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/src/lib.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/src/result.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/src/runtime.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-core/tests/runtime_provider.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-pyo3/Cargo.toml +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-pyo3/src/async_bridge.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-pyo3/src/completion.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-pyo3/src/credential.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/crates/vcache-pyo3/src/lib.rs +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/django_vcache/__init__.py +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/django_vcache/contrib/__init__.py +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/django_vcache/contrib/aws.py +0 -0
- {django_vcache-3.2.0 → django_vcache-3.3.0}/django_vcache/exceptions.py +0 -0
|
@@ -714,7 +714,7 @@ dependencies = [
|
|
|
714
714
|
|
|
715
715
|
[[package]]
|
|
716
716
|
name = "rlib-link-test"
|
|
717
|
-
version = "3.
|
|
717
|
+
version = "3.3.0"
|
|
718
718
|
dependencies = [
|
|
719
719
|
"pyo3",
|
|
720
720
|
"vcache-pyo3",
|
|
@@ -1018,7 +1018,7 @@ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
|
|
1018
1018
|
|
|
1019
1019
|
[[package]]
|
|
1020
1020
|
name = "vcache-core"
|
|
1021
|
-
version = "3.
|
|
1021
|
+
version = "3.3.0"
|
|
1022
1022
|
dependencies = [
|
|
1023
1023
|
"arc-swap",
|
|
1024
1024
|
"redis",
|
|
@@ -1029,7 +1029,7 @@ dependencies = [
|
|
|
1029
1029
|
|
|
1030
1030
|
[[package]]
|
|
1031
1031
|
name = "vcache-pyo3"
|
|
1032
|
-
version = "3.
|
|
1032
|
+
version = "3.3.0"
|
|
1033
1033
|
dependencies = [
|
|
1034
1034
|
"pyo3",
|
|
1035
1035
|
"redis",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-vcache
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.3.0
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Framework :: Django
|
|
6
6
|
Classifier: Framework :: Django :: 5.0
|
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
18
19
|
Classifier: Programming Language :: Rust
|
|
19
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
21
|
Requires-Dist: django>=5.0
|
|
@@ -873,6 +873,14 @@ impl ValkeyConnInner {
|
|
|
873
873
|
conn_method!(self, c, c.llen(key).await)
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
+
// Set operations
|
|
877
|
+
|
|
878
|
+
pub async fn smembers(&mut self, key: &str) -> RedisResult<Vec<Vec<u8>>> {
|
|
879
|
+
let mut cmd = redis::cmd("SMEMBERS");
|
|
880
|
+
cmd.arg(key);
|
|
881
|
+
dispatch_cmd!(self, cmd)
|
|
882
|
+
}
|
|
883
|
+
|
|
876
884
|
pub async fn blmove(
|
|
877
885
|
&mut self,
|
|
878
886
|
source: &str,
|
|
@@ -1428,6 +1436,10 @@ impl ValkeyConn {
|
|
|
1428
1436
|
retry_transport!(self, self.regular.llen(key).await)
|
|
1429
1437
|
}
|
|
1430
1438
|
|
|
1439
|
+
pub async fn smembers(&mut self, key: &str) -> RedisResult<Vec<Vec<u8>>> {
|
|
1440
|
+
retry_transport!(self, self.regular.smembers(key).await)
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1431
1443
|
pub async fn scan_all(&mut self, pattern: &str, count: i64) -> RedisResult<Vec<String>> {
|
|
1432
1444
|
retry_transport!(self, self.regular.scan_all(pattern, count).await)
|
|
1433
1445
|
}
|
|
@@ -901,6 +901,32 @@ impl RustValkeyDriver {
|
|
|
901
901
|
.map_err(to_py_err)
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
+
// =================================================================
|
|
905
|
+
// Set operations (raw bytes)
|
|
906
|
+
// =================================================================
|
|
907
|
+
|
|
908
|
+
#[pyo3(signature = (key))]
|
|
909
|
+
fn smembers(&self, py: Python<'_>, key: &str) -> PyResult<Py<PyAny>> {
|
|
910
|
+
let key = key.to_string();
|
|
911
|
+
async_op!(self, py, conn, {
|
|
912
|
+
match conn.smembers(&key).await {
|
|
913
|
+
Ok(items) => RawResult::BytesList(items),
|
|
914
|
+
Err(e) => classify(e),
|
|
915
|
+
}
|
|
916
|
+
})
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
#[pyo3(signature = (key))]
|
|
920
|
+
fn smembers_sync(&self, py: Python<'_>, key: &str) -> PyResult<Py<PyAny>> {
|
|
921
|
+
let items: Vec<Vec<u8>> = sync_op!(py, self, conn, conn.smembers(key).await)
|
|
922
|
+
.map_err(to_py_err)?;
|
|
923
|
+
let py_items: Vec<Py<PyAny>> = items
|
|
924
|
+
.iter()
|
|
925
|
+
.map(|b| PyBytes::new(py, b).into_any().unbind())
|
|
926
|
+
.collect();
|
|
927
|
+
Ok(pyo3::types::PyList::new(py, py_items)?.into_any().unbind())
|
|
928
|
+
}
|
|
929
|
+
|
|
904
930
|
#[pyo3(signature = (source, destination, wherefrom, whereto, timeout))]
|
|
905
931
|
fn blmove(
|
|
906
932
|
&self,
|
|
@@ -138,6 +138,10 @@ class ValkeyDriverProtocol(Protocol):
|
|
|
138
138
|
def llen(self, key: str) -> Any: ...
|
|
139
139
|
def llen_sync(self, key: str) -> int: ...
|
|
140
140
|
|
|
141
|
+
# Set ops (raw bytes) -------------------------------------------------
|
|
142
|
+
def smembers(self, key: str) -> Any: ...
|
|
143
|
+
def smembers_sync(self, key: str) -> list[bytes]: ...
|
|
144
|
+
|
|
141
145
|
# Blocking ops (separate connection; multi-second timeouts) -----------
|
|
142
146
|
def blmove(
|
|
143
147
|
self,
|
|
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "django-vcache"
|
|
7
|
-
version = "3.
|
|
7
|
+
version = "3.3.0"
|
|
8
8
|
description = "A specialized, lightweight Django cache backend for Valkey."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{ name = "David Burke", email = "david@burkesoftware.com" }]
|
|
@@ -30,6 +30,7 @@ classifiers = [
|
|
|
30
30
|
"Programming Language :: Python :: 3.12",
|
|
31
31
|
"Programming Language :: Python :: 3.13",
|
|
32
32
|
"Programming Language :: Python :: 3.14",
|
|
33
|
+
"Programming Language :: Python :: 3.15",
|
|
33
34
|
"Programming Language :: Rust",
|
|
34
35
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
35
36
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|