def exists(self, keys: str, **kwargs) -> bool

Function

Determines whether a single key exists in the pool.

Prototype

def exists(self, keys: str, **kwargs) -> bool:

Parameters

Parameter

Type

Description

keys

String

A single key to be queried.

**kwargs

-

Optional parameters related to implementation (such as lease check, namespace, and tolerance for expiration).

Return Value

Bool type.

  • True: The key exists and is available.
  • False: The key does not exist or is unavailable.