Build and install apr_memcache from subversion as follows:
- svn co http://svn.northnitch.com/apr_memcache/trunk apr_memcache
- cd apr_memcache && aclocal && autoconf && automake && ./configure
--prefix=/usr/local
- cd apr_memcache && sudo make install
Then grab and build the "mwelles" branch of dbslayer :
- svn co http://www.dbslayer.org/svn/dbslayer/branches/mwelles
dbslayer-mwelles dbslayer-experimental
- cd dbslayer-experimental && aclocal && autoconf && automake &&
./configure --prefix=/usr/local
- cd dbslayer-experimental && make && sudo make install
See if it's working properly:
- ./dbslayer-expermintal/tests/unit-tests.rb
This branch also contains support for input, output, and mapping
filters in LUA (should lua be available), as well as the ability to
query schema layout in JSON.
For usage examples, see the tests under tests/unit-tests.rb
The nutshell version: add "CACHE: [TTL]" to your json and you're good
to go, should the dbslayer daemon have a connection to a memcache
server.
-- Mike