github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

clofresh / mysql-proxy-cache

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 23
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A protocol-level caching layer for mysql — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

adding bsd license 
Carlo Cabanilla (author)
Fri Oct 23 10:49:21 -0700 2009
commit  c913cd5ed9506ce45e221fd57aa065d5227cf521
tree    a0bbba954d0ba93e044f86b66e28366ffd8448ac
parent  b897c81a2e39231ad7f06d03019ec068a1fc24cf
mysql-proxy-cache /
name age
history
message
file LICENSE Fri Oct 23 10:49:21 -0700 2009 adding bsd license [Carlo Cabanilla]
file README Wed Jul 08 14:00:37 -0700 2009 Modified mysql-proxy-cache.lua so that it works... [Daniel Lockard]
file mysql-proxy-cache.lua Wed Jul 08 14:08:09 -0700 2009 uncommented print messages [Daniel Lockard]
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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server