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

Method acl_setuser

redis/commands/core.py:341–358  ·  view source on GitHub ↗
(
        self: SyncClientProtocol,
        username: str,
        enabled: bool = False,
        nopass: bool = False,
        passwords: str | Iterable[str] | None = None,
        hashed_passwords: str | Iterable[str] | None = None,
        categories: Iterable[str] | None = None,
        commands: Iterable[str] | None = None,
        keys: Iterable[KeyT] | None = None,
        channels: Iterable[ChannelT] | None = None,
        selectors: Iterable[Tuple[str, KeyT]] | None = None,
        reset: bool = False,
        reset_keys: bool = False,
        reset_channels: bool = False,
        reset_passwords: bool = False,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

339
340 @overload
341 def acl_setuser(
342 self: SyncClientProtocol,
343 username: str,
344 enabled: bool = False,
345 nopass: bool = False,
346 passwords: str | Iterable[str] | None = None,
347 hashed_passwords: str | Iterable[str] | None = None,
348 categories: Iterable[str] | None = None,
349 commands: Iterable[str] | None = None,
350 keys: Iterable[KeyT] | None = None,
351 channels: Iterable[ChannelT] | None = None,
352 selectors: Iterable[Tuple[str, KeyT]] | None = None,
353 reset: bool = False,
354 reset_keys: bool = False,
355 reset_channels: bool = False,
356 reset_passwords: bool = False,
357 **kwargs,
358 ) -> bool: ...
359
360 @overload
361 def acl_setuser(

Calls 7

DataErrorClass · 0.90
list_or_argsFunction · 0.85
encodeMethod · 0.80
decodeMethod · 0.80
get_encoderMethod · 0.45
appendMethod · 0.45
execute_commandMethod · 0.45