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

keys()[source]#

Return a set-like object providing a view on the dict’s keys.

values()[source]#

Return an object providing a view on the dict’s values.

itervalues()[source]#
flushdb()[source]#
flushall()[source]#
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