This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Daniel Lockard (author)
Wed Jul 08 14:00:37 -0700 2009
commit 6f21baa7557665cfa22c1e072ac383268e9dd260
tree 4fa4af0106bb30272857d03f01161fae5d20193b
parent 2379fd334f63bb4e432fd5b30de05b99abca170b
tree 4fa4af0106bb30272857d03f01161fae5d20193b
parent 2379fd334f63bb4e432fd5b30de05b99abca170b
| name | age | message | |
|---|---|---|---|
| |
README | ||
| |
mysql-proxy-cache.lua |
README
Dependencies: * MySQL Proxy (http://dev.mysql.com/downloads/mysql-proxy/index.html) * memcached (http://www.danga.com/memcached/) * LuaRocks (http://www.luarocks.org/) - to install the md5 and luasocket libraries * md5.lua (http://www.keplerproject.org/md5/) * Memcached.lua (http://luamemcached.luaforge.net/) * LuaSocket (http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/) Usage: Assuming you have mysql and memcache instances running locally listening at their respective default ports, you can just run the following commands: mysql-proxy --proxy-lua-script=mysql-proxy-cache.lua Then, point your application to mysql proxy on port 4040 instead of 3306. Make sure you specify 127.0.0.1 as the host instead of localhost, otherwise you won't connect to mysql proxy. Default Timeout for data is 30 seconds. To change this, as it is rather low, and set this way for testing, edit the variable cache_timeout it mysql-proxy-cache.lua








