pm4py.streaming.util.dictio.versions.redis module#
- class pm4py.streaming.util.dictio.versions.redis.Parameters(*values)[source]#
Bases:
Enum- HOSTNAME = 'hostname'#
- PORT = 'port'#
- DICT_ID = 'dict_id'#
- class pm4py.streaming.util.dictio.versions.redis.ThreadSafeRedisDict(redis_connection, *args, **kw)[source]#
Bases:
dict
- pm4py.streaming.util.dictio.versions.redis.apply(parameters: Dict[Any, Any] | None = None)[source]#
Create a Python dictionary supported by a Redis database
- Parameters:
parameters – Parameters of the algorithm, including: - Parameters.HOSTNAME => hostname of the connection to Redis (default: 127.0.0.1) - Parameters.PORT => port of the connection to Redis (default: 6379) - Parameters.DICT_ID => integer identifier of the specific dictionary in Redis (default: 0)
- Returns:
Redis (Python-like) dictionary
- Return type:
r