19 Root the specified redis key name in our pseudo redis database. 21 if re.match(
'rocon:', key):
29 Root the specified redis key name in our pseudo redis database under 32 if re.match(
'rocon:hub:', key):
35 return 'rocon:hub:' + key
40 Root the specified redis key name in our pseudo redis database under 41 the gateway namespace. 43 @note : currently does no checking of the incoming keys 45 return 'rocon:' + unique_gateway_name +
":" + key
50 Extract the specified redis key name from our pseudo redis database. 52 if re.match(
'rocon:', key):
53 return re.sub(
r'rocon:',
'', key)
60 Extract the base name (i.e. last value) from the key. 61 e.g. rocon:key:pirate24 -> pirate24 63 return key.split(
':')[-1]
def create_rocon_key(key)
Utility Functions.
def create_rocon_gateway_key(unique_gateway_name, key)
def extract_rocon_key(key)
def create_rocon_hub_key(key)