Subject: | load_driver method |
it would be useful to have a load_driver method that would make it easier to load CHI drivers before a process is forked (or a thread is created with the threads module) without needing to create an actual cache object using the driver, or duplicating internal CHI code for loading drivers.
my use case for this is in MogileFS::Client::Fuse. I want to be able to load all the necessary perl modules before I mount the FUSE filesystem. Once the FS is mounted, Fuse module will spawn additional threads as needed when running in threaded mode. I want the benefits of loading a module once with the thread safety of not sharing objects that may not be thread-safe across multiple threads.