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 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 """