MCPcopy
hub / github.com/redis/redis-py / set

Method set

redis/commands/core.py:4150–4166  ·  view source on GitHub ↗
(
        self: SyncClientProtocol,
        name: KeyT,
        value: EncodableT,
        ex: ExpiryT | None = ...,
        px: ExpiryT | None = ...,
        nx: bool = ...,
        xx: bool = ...,
        keepttl: bool = ...,
        get: bool = ...,
        exat: AbsExpiryT | None = ...,
        pxat: AbsExpiryT | None = ...,
        ifeq: bytes | str | None = ...,
        ifne: bytes | str | None = ...,
        ifdeq: str | None = ...,
        ifdne: str | None = ...,
    )

Source from the content-addressed store, hash-verified

4148
4149 @overload
4150 def set(
4151 self: SyncClientProtocol,
4152 name: KeyT,
4153 value: EncodableT,
4154 ex: ExpiryT | None = ...,
4155 px: ExpiryT | None = ...,
4156 nx: bool = ...,
4157 xx: bool = ...,
4158 keepttl: bool = ...,
4159 get: bool = ...,
4160 exat: AbsExpiryT | None = ...,
4161 pxat: AbsExpiryT | None = ...,
4162 ifeq: bytes | str | None = ...,
4163 ifne: bytes | str | None = ...,
4164 ifdeq: str | None = ...,
4165 ifdne: str | None = ...,
4166 ) -> bool | str | bytes | None: ...
4167
4168 @overload
4169 def set(

Callers 5

__setitem__Method · 0.95
do_acquireMethod · 0.45
start_loopMethod · 0.45
renew_with_callbackMethod · 0.45
_renew_token_asyncMethod · 0.45

Calls 6

DataErrorClass · 0.90
extract_expire_flagsFunction · 0.90
at_most_one_value_setFunction · 0.85
appendMethod · 0.45
extendMethod · 0.45
execute_commandMethod · 0.45

Tested by

no test coverage detected