MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / start

Method start

tests/disposableredis/__init__.py:118–142  ·  view source on GitHub ↗

Start the server. To stop the server you should call stop() accordingly

(self)

Source from the content-addressed store, hash-verified

116 time.sleep(0.1)
117
118 def start(self):
119 """
120 Start the server. To stop the server you should call stop()
121 accordingly
122 """
123 if self._port is None:
124 self.port = get_random_port()
125 else:
126 self.port = self._port
127
128 if not self.dumpfile:
129 self.dumpfile = 'dump.%s.rdb' % self.port
130 if not self.aoffile:
131 self.aoffile = 'appendonly.%s.aof' % self.port
132
133 self.args = [self.path,
134 '--port', str(self.port),
135 '--save', '',
136 '--dbfilename', self.dumpfile]
137 if self.use_aof:
138 self.args += ['--appendonly', 'yes', '--appendfilename', self.aoffile]
139
140 self.args += self.extra_args
141
142 self._start_process()
143
144 def _cleanup_files(self):
145 for f in (self.aoffile, self.dumpfile):

Callers 9

__enter__Method · 0.95
dump_and_reloadMethod · 0.95
__init__Method · 0.80
__init__Method · 0.80

Calls 3

_start_processMethod · 0.95
strFunction · 0.85
get_random_portFunction · 0.70

Tested by 7

__init__Method · 0.64
__init__Method · 0.64