about summary refs log tree commit
path: root/lib/metropolis/tc/hdb.rb
DateCommit message (Collapse)
2011-01-17use constants everywhere to reduce GC thrashing
This makes it easier to notice a typo, too.
2010-12-10String#hash is not stable across processes :<
We need to implement our own hash functions for splitting databases across multiple files. This was totally fucking up Rainbows!
2010-12-06allow easier, single-file options for TC and TDB
Most (other) users only need a single file, even though my primary use of this is for multiple files.
2010-11-30tc/hdb: remove HEAD optimization
It makes future extensions difficult. HEAD requests aren't common enough to be worth optimizing for.
2010-11-30internal API: get and head methods require env
We'll need it for implementing the deflater/inflater
2010-11-23tc/hdb: add exclusive mode, lock disabling
The :exclusive mode behaves like TokyoTyrant and keeps the database opened in read-write mode, preventing other processes from accessing the database. This will be useful on Rubies without a GVL. :readonly no longer disables locking by default instead "rdlock=false" must be passed in the query parameter. Write locks may also be disabled with the "wrlock=false" query parameter.
2010-11-23use common setup elements
Some other databases will be able to utilize these variables.
2010-11-23fix readonly interface
use 403 to reject PUT/DELETE requests
2010-11-23add generic Rack read/write test
This fixes 404s on HEAD requests which do not return a body.
2010-11-23tc/hdb: minor formatting cleanups
No point in using more lines than we need to.
2010-11-23split out common read/write code
It will be useful when we support other backends.
2010-11-23rename internal "TokyoCabinet" => "TC"
It's less typing and less likely to clash on both the eyes and the interpreter.