keydb.sc
keydb.sc
Module for working with key-value database.
Functions:
Keydb_clean
Removes partially stored keys from the database.
Detailed Description
Parameters
pattern |
- operate only on keys matching to the pattern. The pattern is the same as accepted by Redis in the KEYS and SCAN command. (http://redis.io/commands/keys) |
the result of consensus operation. True, when everything went fine, False on consensus error. |
keydb_connect(string)
Connect to a Redis host.
keydb_get(string)
Get value stored in database.
keydb_scan(string)
Start a scan of all the keys stored in the database.
Detailed Description
Parameters
pattern |
- operate only on keys matching to the pattern. The pattern is the same as accepted by Redis in the KEYS and SCAN command. (http://redis.io/commands/keys) |
a ScanCursor which holds the key and a cursor. Internally this will call |
keydb_clean to make sure only existing keys are returned from the scan.
keydb_scan_cursor_free(cursor)
Deallocates the given cursor without popping all the elements.
Detailed Description
Parameters
sc |
- the cursor returned by previous call to keydb_scan or keydb_scan_next. |
Function Overloads
void keydb_scan_cursor_free(ScanCursor sc)
keydb_scan_next(cursor)
Scan the next key from a database.
Detailed Description
Parameters
sc |
the cursor returned by previous call to keydb_scan or keydb_scan_next. |
a ScanCursor which holds the key and a cursor. |
Function Overloads
keydb_scan_next(ScanCursor sc)