||File System Database
||2003-03-03 02:28:13 GMT
||2005-08-25 21:57:03 GMT
(Projects of this owner)
FSDB is a file system data base. FSDB provides a thread-safe, process-safe Database class which uses the native file system as its back end and allows multiple file formats and serialization methods. Users access objects in terms of their paths relative to the base directory of the database. It's very light weight (the state of a Database is essentially just a path string, and code size is very small, around 1K lines of ruby).
- If ruby is 1.8.2 or later, flock doesn't block other threads, so accessing
FSDB databases from a multithreaded app doesn't have to use a lock polling
hack in file-lock.rb. This results in a 12%-17% speed boost. No change to
user code is required.
- Added a _load_ argument to Database#delete, with default +true+. If the
_load_ argument is +false+, delete the object from the db without
loading it or yielding.
- Replaced #id with #object_id.
- For ruby 1.9 compatibility, replaced use of class variables (@@cache and