hashlookup-server/doc/DATABASE.md

20 lines
563 B
Markdown
Raw Normal View History

# Database structure of hashlookup
## hash storage
- `l:<md5>` set -> {sha1, sha1}
- `h:<sha1>`` hash -> keys from NSRL or other data sources
## Publish-Subscribe channels
- `nx` JSON message of non-existing hashes searched
- `exist` JSON message of existing hashes searched
## Statistics
- `s:nx:md5` sorted set of MD5 non-existing hashes
- `s:nx:sha1` sorted set of SHA1 non-existing hashes
- `s:exist:md5` sorted set of SHA1 existing hashes
- `s:exixt:sha1` sorted set of SHA1 existing hashes
2021-08-13 20:56:06 +00:00
- `stat:<NSRLname>` string with the number of items imported