TTL does not work on keys if I don't call db.Close()

@vgupta-mickey Please find the answers below:

  1. No. Badger can be opened by a single process at a time.
  2. Yes. You can use info tool provided by Badger for this. (You can run badger info --show-keys --dir=badgerdir).
  3. Badger is an embedded key value store. It does not provide any way to connect to it from remote. You need to get Badger directory content to perform any analysis on it.
  4. It is not done automatically. You need to run it periodically. You can see an example on Badger README.