bitly/forgettable — pull request #8 by mynameisfiber (2013-05-13 18:13:53+00:00)
Title: Added /dbsize handler to help with TD-IDF calculation

For TD-IDF calculation, we need to know how many documents there are. When using forgettable for this, the number of distributions currently in the database is the number of documents. Redis already provides an easy command to get this value (`DBSIZE`), so I added a simple endpoint to retrieve this value.