From e7279bb30ef09ad894cab95149079cd71c5b71ee Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Mon, 20 Nov 2023 22:22:41 +0100 Subject: [PATCH 1/2] Fix pyi typing info ## Motivation / Description Forgot to add the changes in this file to prev commit --- meta_memcache_socket.pyi | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/meta_memcache_socket.pyi b/meta_memcache_socket.pyi index 532c4ab..f573e7f 100644 --- a/meta_memcache_socket.pyi +++ b/meta_memcache_socket.pyi @@ -168,6 +168,57 @@ def build_cmd( Build a memcache meta-protocol command :param cmd: The command to send + :param key: The key to use + :param flags: The flags to use + :param legacy_size_format: Wether to legacy size syntax from 1.6.6 + """ + ... + +def build_meta_get( + key: bytes, + flags: Optional[RequestFlags] = None, +) -> bytes: + """ + Build a memcache meta-get command + + :param key: The key to use + :param flags: The flags to use + """ + ... + +def build_meta_delete( + key: bytes, + flags: Optional[RequestFlags] = None, +) -> bytes: + """ + Build a memcache meta-get command + + :param key: The key to use + :param flags: The flags to use + """ + ... + +def build_meta_set( + key: bytes, + size: Optional[int] = None, + flags: Optional[RequestFlags] = None, + legacy_size_format: bool = False, +) -> bytes: + """ + Build a memcache meta-set command + + :param key: The key to use + :param flags: The flags to use + """ + ... + +def build_meta_arithmetic( + key: bytes, + flags: Optional[RequestFlags] = None, +) -> bytes: + """ + Build a memcache meta-arithmetic command + :param key: The key to use :param flags: The flags to use """ From 3375a89304f89f5f80f0263c1a21c629d8b20800 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Tue, 21 Nov 2023 09:51:40 +0100 Subject: [PATCH 2/2] version bump --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7d23698..b3c77bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -74,7 +74,7 @@ dependencies = [ [[package]] name = "meta-memcache-socket" -version = "0.1.0" +version = "0.1.1" dependencies = [ "atoi", "base64", diff --git a/Cargo.toml b/Cargo.toml index 6f4a4ad..0f41a50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "meta-memcache-socket" -version = "0.1.0" +version = "0.1.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html