Helper function for writing session data to HashDB
(key, value, serialize=False)
| 5056 | return value |
| 5057 | |
| 5058 | def hashDBWrite(key, value, serialize=False): |
| 5059 | """ |
| 5060 | Helper function for writing session data to HashDB |
| 5061 | """ |
| 5062 | |
| 5063 | if conf.hashDB: |
| 5064 | _ = '|'.join((str(_) if not isinstance(_, six.string_types) else _) for _ in (conf.hostname, conf.path.strip('/') if conf.path is not None else conf.port, key, HASHDB_MILESTONE_VALUE)) |
| 5065 | conf.hashDB.write(_, value, serialize) |
| 5066 | |
| 5067 | def hashDBRetrieve(key, unserialize=False, checkConf=False): |
| 5068 | """ |
no test coverage detected
searching dependent graphs…