TokyoCabinet pseudo-environment tc-pseudoenv-test
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 18 Jan 2011 18:20:56 +0000 (19:20 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 18 Jan 2011 18:20:56 +0000 (19:20 +0100)
commit27a9539d7786583fd0315c964b2484554aec5a48
tree579402d29271f798f2e4da8dfb809489b72a7541
parent12a508e1a75bc1de501f36ca9e4767f2349fe12e
TokyoCabinet pseudo-environment

TokyoCabinet does not have an environment feature to automatically
manage databases, and in particular there is no simple way to close all
open registries on exit. While we do close main registries for all
plugins, this is not usually done for sub-registries. Rather than
shifting the chore of their management to each plugin, we set up a list
of all opened registries, updating it manually and releasing it on
shutdown.
lib/rbot/registry/tc.rb